summaryrefslogtreecommitdiff
path: root/inc/creature.hpp
diff options
context:
space:
mode:
authorTom Barrett <tombarrett@cornell.engr.siu.edu>2015-05-08 14:25:47 -0500
committerTom Barrett <tombarrett@cornell.engr.siu.edu>2015-05-08 14:25:47 -0500
commit88579e8ab934e1ec50ee4c1a5e2d39b1308c1db9 (patch)
tree93deb6db9cc318e903b7c9b47d5cfee21f323741 /inc/creature.hpp
parent39d7fe95633baafe4539f604186b151f30401a39 (diff)
all creatures should die now, and leave a body which is a resource.
they currently don't have a way to gain health so they live short sad lives. haven't compiled or tested, so more work needs to be done
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r--inc/creature.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp
index 9bb73ee..cfdd317 100644
--- a/inc/creature.hpp
+++ b/inc/creature.hpp
@@ -9,10 +9,11 @@ class Creature: public Entity
public:
Creature(Window m, std::string s);
void Behavior();
- void Action();
+ void Action();
void Priority();
Location getLocation();
void giveKnown(std::vector<Location> Z){location = Z;};
+ int getHealth(){return health;};
private:
int xTarget; //x-coordinate of creature's target position