summaryrefslogtreecommitdiff
path: root/inc/resource.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'inc/resource.hpp')
-rw-r--r--inc/resource.hpp2
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