From 11c5d147b845d4323f2e94c1ac47b6001420d8e6 Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 19 Jan 2017 13:33:46 -0600 Subject: -added entity growing -added bite functionality for creature/resource -added gender (next largest feature is reproduction) -refractored creature setTarget function to make more sense -added constants for starting size of entity and max size of entity -refractored list to make make much more sense -added constants for types --- inc/resource.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'inc/resource.hpp') diff --git a/inc/resource.hpp b/inc/resource.hpp index ed9f098..5c740fa 100644 --- a/inc/resource.hpp +++ b/inc/resource.hpp @@ -7,12 +7,15 @@ class Resource: public Entity { public: Resource(Window m, SDL_Rect Rect); - void eat(); + void eat(int bite); int getAmount(){return amount;}; + void grow(); + int map(int x, int inMin, int inMax, int outMin, int outMax); private: int amount; + int growAmount; }; #endif -- cgit v1.2.3