aboutsummaryrefslogtreecommitdiff
path: root/rat.h
blob: fae1d2d8122171326f0bd303a229fc2f9a1e3582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef rat_h
#define rat_h

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <unistd.h>
#include <ncurses.h>
#include <sys/stat.h>

typedef struct {
    float hunger;
    float love;
    float fun;
    float clean;
    float health;
    int age;
} Rat;

extern char *ratart[];
extern char *funfact[]; 
extern char *messages[];

extern Rat rat;

void load(void);
void save(void);
void setstat(void);
void addstat(float *guy);

WINDOW *ratdrawbox(void);
int wrapprint(WINDOW *win, int row, int col, int maxwidth, const char *msg);

void gameguess(void);
void gamecatch(void);
void gamemaze(void);
void gameclicker(void);

#endif