From 74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 Mon Sep 17 00:00:00 2001 From: iamn1ck Date: Sun, 19 Feb 2017 07:00:34 -0600 Subject: -quadtree and opengl rendering are now in the master branch ! -using sdl_rect for location and size ended up being not so great due to it not having floats, so we reverted back to using location -much, much refractoring is now needed --- inc/entity.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'inc/entity.hpp') 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 + #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 -- cgit v1.2.3