diff options
author | Tom <spalf0@gmail.com> | 2015-05-26 14:04:04 -0500 |
---|---|---|
committer | Tom <spalf0@gmail.com> | 2015-05-26 14:04:04 -0500 |
commit | 6b967f3bd7a3e7203b57bd9e4edb0db82bc9ed1c (patch) | |
tree | 8dfb8ce54fb9ef775bd2153aae67307d1f943e78 /inc/resource.hpp | |
parent | ce6b35d717de85a7ac45fa98197edf13e1820c8a (diff) |
revamped the list and creatures
two bugs i can see right now
-somehow when a resource has less than 0 amount it still sticks around (somewhat rare)
-some creatures just bounce back and forth until they die not getting to their target
Diffstat (limited to 'inc/resource.hpp')
-rw-r--r-- | inc/resource.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/resource.hpp b/inc/resource.hpp index a1dd988..c551844 100644 --- a/inc/resource.hpp +++ b/inc/resource.hpp @@ -10,7 +10,7 @@ class Resource: public Entity Resource(Window m, std::string s); Resource(Window m, std::string s, Location z); Location getLocation(); - void eat(){amount-=10;}; + void eat(); int getAmount(){return amount;}; private: |