From fcf6abaccec7c7ed2fd306a9cf1ec378f303297c Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 19 Feb 2017 10:41:00 -0600 Subject: -refractoring of includes --- inc/quadtree.hpp | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'inc/quadtree.hpp') diff --git a/inc/quadtree.hpp b/inc/quadtree.hpp index 8da34aa..2b07103 100644 --- a/inc/quadtree.hpp +++ b/inc/quadtree.hpp @@ -4,38 +4,38 @@ #include #include -#include "sdl/window.hpp" +#include "constants.hpp" #include "creature.hpp" #include "resource.hpp" #include "entity.hpp" #include "rectangle.hpp" + #include "opengl/graphicsdata.hpp" +#include "sdl/window.hpp" class Quadtree { + public: + Quadtree(); + Quadtree(int pLevel,Rectangle pBounds); + + void clear(); + void insert(Entity* iter); + + std::list retrieve(std::list returnObject, GraphicsData obj); + std::list objects; + + Quadtree* nodes; + + std::vector Draw(); + + private: + void split(); + int getIndex(GraphicsData object); + int level; + bool isNull = true; - public: - Quadtree(); - Quadtree(int pLevel, Rectangle pBounds); - void clear(); - void insert(Entity* iter); - std::list retrieve(std::list returnObject, GraphicsData obj); - - std::list objects; - - Quadtree* nodes; - - std::vector Draw(); - - private: - void split(); - int getIndex(GraphicsData object); - int MAX_OBJECTS = 5; - int MAX_LEVELS = 6; - int level; - bool isNull = true; - - GraphicsData gfxDataRect; - Rectangle bounds; + GraphicsData gfxDataRect; + Rectangle bounds; }; #endif -- cgit v1.2.3