diff options
Diffstat (limited to 'inc/entity.hpp')
-rw-r--r-- | inc/entity.hpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/inc/entity.hpp b/inc/entity.hpp index 1bb0405..50f9b06 100644 --- a/inc/entity.hpp +++ b/inc/entity.hpp @@ -1,8 +1,10 @@ #ifndef entity_h #define entity_h -#include "window.hpp" +#include <SDL2/SDL.h> + #include "dna.hpp" +#include "graphicsobjects.hpp" class Entity { @@ -12,17 +14,18 @@ class Entity int getType(){return type;}; virtual bool getGender(void){}; virtual int getAmount(void){}; - SDL_Rect getRect(){return rect;}; + Location getLocation(){return L;}; virtual void eat(int bite){}; virtual void impregnate(Dna D){}; + GraphicsData getGFXD(){return gfxData;}; + GraphicsData gfxData; protected: int type; int gender; bool pregnate; - SDL_Rect rect; - SDL_Renderer* renderer; + Location L; }; #endif |