summaryrefslogtreecommitdiff
path: root/inc/resource.hpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-19 10:41:00 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:23:41 -0600
commitfcf6abaccec7c7ed2fd306a9cf1ec378f303297c (patch)
tree75d4df2b09346014e4784c2b597f0110a6b82e5b /inc/resource.hpp
parent5c46e0f0a924989201c6784b0f956bc442f14a7e (diff)
-refractoring of includes
Diffstat (limited to 'inc/resource.hpp')
-rw-r--r--inc/resource.hpp20
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