diff options
author | tom <tom@ground-control> | 2016-05-13 20:52:03 -0500 |
---|---|---|
committer | tom <tom@ground-control> | 2016-05-13 20:52:03 -0500 |
commit | 20717aeb1b12a7179e7b29c3c8880f18b360a1c8 (patch) | |
tree | f9f3ea119f03a276a0f241d0c1c10b01a3c44690 /inc | |
parent | 05c98dad6bca7f0bcae2a09a12f4863dac546e22 (diff) |
created settarget function and refractored priority
Diffstat (limited to 'inc')
-rw-r--r-- | inc/creature.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp index c3d5fdb..636d960 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -12,6 +12,7 @@ class Creature: public Entity void Behavior(); void Action(); void Priority(); + void setTarget(); void Move(Location l); void giveN(list<Entity*> n){N = n;}; @@ -27,7 +28,7 @@ class Creature: public Entity Location wTarget; int health; int maxHealth; - int hunger; + bool hungry; int speed = 1; bool able; int bestSense = 100; |