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/entity.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'inc/entity.hpp') diff --git a/inc/entity.hpp b/inc/entity.hpp index 6587f11..a7b7f58 100644 --- a/inc/entity.hpp +++ b/inc/entity.hpp @@ -12,10 +12,14 @@ class Entity SDL_Rect getRect(){return rect;}; virtual void eat(int bite){}; - virtual int getAmount(void){}; + virtual void impregnate(void){}; + virtual bool getGender(void){}; + virtual int getAmount(void){}; protected: int type; + int gender; + bool pregnate; SDL_Rect rect; SDL_Renderer* renderer; }; -- cgit v1.2.3