mirror of
https://git.squeakyrat.moe/petratc/
synced 2026-11-04 18:35:43 +01:00
42 lines
683 B
C
42 lines
683 B
C
#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
|