summaryrefslogtreecommitdiff
path: root/inc/creature.hpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2016-05-02 22:31:59 -0500
committertom <tom@ground-control>2016-05-02 22:31:59 -0500
commit6873831fa5c99f74609c60e2918692cdd46f1aa1 (patch)
treeb48b25f3c26b6051dc7c7d0c52390c35d4060c9a /inc/creature.hpp
parente7cac5098145d75a680e35787f7c504caf16965b (diff)
reimplemented wandering
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r--inc/creature.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp
index 7da82e5..c3d5fdb 100644
--- a/inc/creature.hpp
+++ b/inc/creature.hpp
@@ -12,8 +12,9 @@ class Creature: public Entity
void Behavior();
void Action();
void Priority();
+ void Move(Location l);
void giveN(list<Entity*> n){N = 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;};
@@ -22,6 +23,8 @@ class Creature: public Entity
private:
bool hasTarget;
+ bool wander;
+ Location wTarget;
int health;
int maxHealth;
int hunger;