diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/creature.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp index 875b498..f3bd723 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -12,10 +12,10 @@ class Creature: public Entity int Behavior(); bool Action(); void Priority(); - Location getLocation(); void giveR(vector<Resource*> n){nR=n;}; void giveC(vector<Creature*> n){nC=n;}; - + + Location getLocation(){return L;}; double Distance(Location A, Location B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));}; int getHealth(){return health;}; bool doesItHaveTarget(){return hasTarget;}; |