22 lines
419 B
C++
22 lines
419 B
C++
#pragma once
|
|
#include <Arduino.h>
|
|
#define MAXIMUM_STAT 100
|
|
|
|
class Pet {
|
|
public:
|
|
Pet();
|
|
bool isAlive;
|
|
|
|
void updateHunger(int8_t delta);
|
|
void updateJoy(int8_t delta);
|
|
void updateEnergy(int8_t delta);
|
|
void updateCleanliness(int8_t delta);
|
|
String getReasonForDeath() const;
|
|
private:
|
|
int8_t hunger;
|
|
int8_t joy;
|
|
int8_t energy;
|
|
int8_t cleanliness;
|
|
String reasonForDeath;
|
|
};
|