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/list.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/list.hpp')
-rw-r--r-- | inc/list.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/inc/list.hpp b/inc/list.hpp index 64b3ec5..7758fac 100644 --- a/inc/list.hpp +++ b/inc/list.hpp @@ -10,20 +10,22 @@ #include "resource.hpp" #include "window.hpp" #include "constants.hpp" +#include "quadtree.hpp" class List { public: - List(Window m); + List(); void Behavior(); void Place(); void Remove(); - std::vector<Entity*> getNear(Creature C); - - private: - Window main = Window("do not create new window."); + std::list<Entity*> getNear(Creature C); std::list<Resource> R; std::list<Creature> C; + + Quadtree tree; + std::vector<GraphicsData> drawQuadTree(); + Rectangle R1; }; #endif |