summaryrefslogtreecommitdiff
path: root/inc/entity.hpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-19 08:06:37 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:23:41 -0600
commit2cc21176467d4501adb7bfb9ee03eb9a2a7d14f2 (patch)
treee12ceac7024bdc697f1ed4adc1a1ece4a82489fc /inc/entity.hpp
parent74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 (diff)
-removed all references to sdl_rect and location and now everything now uses our own class rectangle
-standardization of tab spaces to 8 is now in effect -refractoring of graphicsobjects.hpp
Diffstat (limited to 'inc/entity.hpp')
-rw-r--r--inc/entity.hpp36
1 files changed, 19 insertions, 17 deletions
diff --git a/inc/entity.hpp b/inc/entity.hpp
index 50f9b06..259849f 100644
--- a/inc/entity.hpp
+++ b/inc/entity.hpp
@@ -5,27 +5,29 @@
#include "dna.hpp"
#include "graphicsobjects.hpp"
+#include "rectangle.hpp"
class Entity
{
- public:
- void Place();
-
- int getType(){return type;};
- virtual bool getGender(void){};
- virtual int getAmount(void){};
- Location getLocation(){return L;};
-
- virtual void eat(int bite){};
- virtual void impregnate(Dna D){};
- GraphicsData getGFXD(){return gfxData;};
- GraphicsData gfxData;
+ public:
+ void Place();
+
+ virtual void eat(int bite){};
+ virtual void impregnate(DNA D){};
- protected:
- int type;
- int gender;
- bool pregnate;
- Location L;
+ int getType(){return type;};
+ virtual bool getGender(void){};
+ virtual int getAmount(void){};
+ Rectangle getRectangle(){return L;};
+ GraphicsData getGFXD(){return gfxData;};
+
+
+ protected:
+ int type;
+ int gender;
+ bool pregnate;
+ Rectangle L;
+ GraphicsData gfxData;
};
#endif