summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/creature.hpp3
-rw-r--r--inc/resource.hpp1
2 files changed, 3 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
diff --git a/inc/resource.hpp b/inc/resource.hpp
index 383e9ef..7417908 100644
--- a/inc/resource.hpp
+++ b/inc/resource.hpp
@@ -8,6 +8,7 @@ class Resource: public Entity
{
public:
Resource(Window m, std::string s);
+ Resource(Window m, std::string s, Location z);
Location getLocation();
private: