diff options
author | tom <tom@ground-control> | 2015-05-08 17:41:48 -0500 |
---|---|---|
committer | tom <tom@ground-control> | 2015-05-08 17:41:48 -0500 |
commit | ce6b35d717de85a7ac45fa98197edf13e1820c8a (patch) | |
tree | daca5dfebdb2c3de0ec851caf13c833cdee43c64 /inc/resource.hpp | |
parent | 95fb44dd7009ddbb157fa4c54ddbab88a0af0c0b (diff) |
added removal of resources once eaten, from the L and R vector
creatures that done move don't die right now, we need them to wander if they dont have a priority
**difficult**
Diffstat (limited to 'inc/resource.hpp')
-rw-r--r-- | inc/resource.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/resource.hpp b/inc/resource.hpp index 7417908..a1dd988 100644 --- a/inc/resource.hpp +++ b/inc/resource.hpp @@ -10,6 +10,8 @@ class Resource: public Entity Resource(Window m, std::string s); Resource(Window m, std::string s, Location z); Location getLocation(); + void eat(){amount-=10;}; + int getAmount(){return amount;}; private: int amount; //value associated with the amount of whatever (food, etc) left in the resource |