summaryrefslogtreecommitdiff
path: root/inc/entity.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/entity.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/entity.hpp')
-rw-r--r--inc/entity.hpp6
1 files changed, 5 insertions, 1 deletions
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;
};