diff options
Diffstat (limited to 'inc/resource.hpp')
-rw-r--r-- | inc/resource.hpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/inc/resource.hpp b/inc/resource.hpp index 252b086..07d42d4 100644 --- a/inc/resource.hpp +++ b/inc/resource.hpp @@ -1,20 +1,24 @@ #ifndef resource_h #define resource_h +#include <cstdlib> + #include "entity.hpp" #include "functions.hpp" class Resource: public Entity { - public: - Resource(Rectangle t); - int getAmount(){return amount;}; - void grow(); - void eat(int bite); + public: + Resource(Rectangle t); + + void grow(); + void eat(int bite); + + int getAmount(){return amount;}; - private: - int amount; - int growAmount; + private: + int amount; + int growAmount; }; #endif |