summaryrefslogtreecommitdiff
path: root/inc/resource.hpp
diff options
context:
space:
mode:
authortom <tombarrett@siu.edu>2017-01-21 08:58:12 -0600
committertom <tombarrett@siu.edu>2017-01-21 08:58:12 -0600
commita9281bfcf21861e621a3243ecb633a299c8d8e52 (patch)
tree7d4687fd9a8f40e806e6b7c8803c0e87fcae6639 /inc/resource.hpp
parentccb66c8d6d175b1bd3d8ecaa540e80baac5181b6 (diff)
-took basic math functions and put it into functions.hpp
-spaced various lines -reorganized variables by datatype -implemented reproduction -reorganized pathing so once a target is set, the creature checks if that same target is near every cycle
Diffstat (limited to 'inc/resource.hpp')
-rw-r--r--inc/resource.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/resource.hpp b/inc/resource.hpp
index 5c740fa..cb5946c 100644
--- a/inc/resource.hpp
+++ b/inc/resource.hpp
@@ -2,16 +2,15 @@
#define resource_h
#include "entity.hpp"
+#include "functions.hpp"
class Resource: public Entity
{
public:
Resource(Window m, SDL_Rect Rect);
- void eat(int bite);
-
int getAmount(){return amount;};
void grow();
- int map(int x, int inMin, int inMax, int outMin, int outMax);
+ void eat(int bite);
private:
int amount;