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/list.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'inc/list.hpp') 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 getNear(Creature C); - - private: - Window main = Window("do not create new window."); + std::list getNear(Creature C); std::list R; std::list C; + + Quadtree tree; + std::vector drawQuadTree(); + Rectangle R1; }; #endif -- cgit v1.2.3