#ifndef creature_h #define creature_h #include #include #include "entity.hpp" #include "constants.hpp" class Creature: public Entity { public: Creature(Window m, SDL_Rect R); void Behavior(); void Action(); void Priority(); void setTarget(); void Move(SDL_Rect R); void giveN(list 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; SDL_Rect wTarget; int health; int reach; int maxHealth; int speed; int bestSense; int bite; int amountAte; int amountToGrow; bool hungry; bool gender; bool able; list N; Entity *target; }; #endif