From a9281bfcf21861e621a3243ecb633a299c8d8e52 Mon Sep 17 00:00:00 2001 From: tom Date: Sat, 21 Jan 2017 08:58:12 -0600 Subject: -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 --- inc/resource.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'inc/resource.hpp') 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; -- cgit v1.2.3