|
#ifndef TAMAGOTCHI_H
|
|
#define TAMAGOTCHI_H
|
|
|
|
#define MAX_STAT 100
|
|
#define MIN_STAT 0
|
|
|
|
// Tamagotchi states
|
|
typedef enum {
|
|
HAPPY,
|
|
HUNGRY,
|
|
SLEEPY,
|
|
SICK,
|
|
BORED
|
|
} TamaState;
|
|
|
|
// Tamagotchi structure
|
|
typedef struct {
|
|
int hunger; // 0-100
|
|
int energy; // 0-100
|
|
int happiness; // 0-100
|
|
int cleanliness; // 0-100
|
|
TamaState state;
|
|
int age; // in game cycles
|
|
int is_alive;
|
|
} Tamagotchi;
|
|
|
|
// Function prototypes
|
|
void init_tamagotchi(Tamagotchi *tama);
|
|
void feed_tamagotchi(Tamagotchi *tama);
|
|
void sleep_tamagotchi(Tamagotchi *tama);
|
|
void play_with_tamagotchi(Tamagotchi *tama);
|
|
void clean_tamagotchi(Tamagotchi *tama);
|
|
void update_tamagotchi_stats(Tamagotchi *tama);
|
|
const char* get_tamagotchi_face(Tamagotchi *tama);
|
|
|
|
#endif // TAMAGOTCHI_H
|