summaryrefslogtreecommitdiff
path: root/inc/entity.hpp
diff options
context:
space:
mode:
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