summaryrefslogtreecommitdiff
path: root/inc/creature.hpp
diff options
context:
space:
mode:
authorTom Barrett <tombarrett@cornell.engr.siu.edu>2015-05-08 10:14:42 -0500
committerTom Barrett <tombarrett@cornell.engr.siu.edu>2015-05-08 10:14:42 -0500
commit39d7fe95633baafe4539f604186b151f30401a39 (patch)
tree242d91eafe56a15db046a1068d8e970624c6abfd /inc/creature.hpp
parent76e10e651906b756c4482274cdf1d8ccb686b915 (diff)
parent8c5121486a0e5d94ae5e5ee67370a31530cf8b6f (diff)
Merge branch 'master' of http://github.com/majortom6/natures
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r--inc/creature.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp
index f72dfbc..9bb73ee 100644
--- a/inc/creature.hpp
+++ b/inc/creature.hpp
@@ -10,14 +10,16 @@ class Creature: public Entity
Creature(Window m, std::string s);
void Behavior();
void Action();
+ void Priority();
Location getLocation();
+ void giveKnown(std::vector<Location> Z){location = Z;};
private:
- int xT;
- int yT;
- int hp;
- int hu;
- Location K[3];
+ 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 objects near the creature
};
#endif