summaryrefslogtreecommitdiff
path: root/inc/entity.hpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-18 09:28:58 -0600
committermajortom6 <tombarrett@siu.edu>2017-02-18 09:28:58 -0600
commit03885192b9ff7d3c5e2dcfd98aefd21e9b62f603 (patch)
treec8bf20df1b634d2988e98de85c4439ca16620ca1 /inc/entity.hpp
parent600ce4ae4179ddcb9849c6bb7646f8fc1e79c459 (diff)
general refractoring
Diffstat (limited to 'inc/entity.hpp')
-rw-r--r--inc/entity.hpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/inc/entity.hpp b/inc/entity.hpp
index 0eb8f60..1bb0405 100644
--- a/inc/entity.hpp
+++ b/inc/entity.hpp
@@ -7,22 +7,22 @@
class Entity
{
public:
- void Place();
-
- int getType(){return type;};
- SDL_Rect getRect(){return rect;};
+ void Place();
+
+ int getType(){return type;};
+ virtual bool getGender(void){};
+ virtual int getAmount(void){};
+ SDL_Rect getRect(){return rect;};
- virtual void eat(int bite){};
- virtual void impregnate(Dna D){};
- virtual bool getGender(void){};
- virtual int getAmount(void){};
+ virtual void eat(int bite){};
+ virtual void impregnate(Dna D){};
protected:
- int type;
- int gender;
- bool pregnate;
- SDL_Rect rect;
- SDL_Renderer* renderer;
+ int type;
+ int gender;
+ bool pregnate;
+ SDL_Rect rect;
+ SDL_Renderer* renderer;
};
#endif