diff options
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r-- | inc/creature.hpp | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp index f51d083..edc253f 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -17,24 +17,29 @@ class Creature: public Entity void setTarget(); void Move(SDL_Rect R); - void giveN(list<Entity*> n){N = n;}; - double Distance(SDL_Rect A, SDL_Rect B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));}; - int getHealth(){return health;}; - bool doesItHaveTarget(){return hasTarget;}; - int getBestSense(){return bestSense;}; + void giveN(list<Entity*> n){N = n;}; + double Distance(SDL_Rect A, SDL_Rect B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));}; + int getHealth(){return health;}; + bool doesItHaveTarget(){return hasTarget;}; + int getBestSense(){return bestSense;}; private: - bool hasTarget; - bool wander; + bool hasTarget; + bool wander; SDL_Rect wTarget; - int health; - int reach; - int maxHealth; - bool hungry; - int speed; - bool able; - int bestSense; + int health; + int reach; + int maxHealth; + int speed; + int bestSense; + int bite; + int amountAte; + int amountToGrow; + + bool hungry; + bool gender; + bool able; list<Entity*> N; Entity *target; |