summaryrefslogtreecommitdiff
path: root/inc/creature.hpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-05-08 08:07:11 -0500
committertom <tom@ground-control>2015-05-08 08:07:11 -0500
commitdddcaa7e5fa044972e25e456315c5cba361fc0f5 (patch)
tree299180915292000b2d5029888eb75178b81e8053 /inc/creature.hpp
parent84f94931fa790572b3ce57d72e290f0bd860c661 (diff)
parentc63d77ddddb69ef0f641d90a8c3922fdc356224c (diff)
Merge branch 'master' of https://github.com/MajorTom6/natures
Conflicts: src/list.cpp
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r--inc/creature.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp
index a0046fb..9a26ee8 100644
--- a/inc/creature.hpp
+++ b/inc/creature.hpp
@@ -12,14 +12,14 @@ class Creature: public Entity
void Action();
void Priority();
Location getLocation();
- void giveKnown(std::vector<Location> Z){K=Z;};
+ void giveKnown(std::vector<Location> Z){location = Z;};
private:
- int xT;
- int yT;
- int hp;
- int hu;
- std::vector<Location> K;
+ int xTarget; //x-coordinate of creature's target position
+ int yTarget; //y-coordinate of creature's target position
+ int health; //health of a creature (0-100)
+ int hunger; //value associated with a creatures want to find food (0-100)
+ std::vector<Location> location; //vector containing creatures location on window or target location?
};
#endif