diff options
author | iamn1ck <iamn1ck@yahoo.com> | 2017-02-19 07:00:34 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-03-07 13:22:46 -0600 |
commit | 74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 (patch) | |
tree | 4a3ae40bea9b07a2111128e98d9272bdbac2af87 /inc/entity.hpp | |
parent | 03885192b9ff7d3c5e2dcfd98aefd21e9b62f603 (diff) |
-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
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 |