diff options
author | majortom6 <tombarrett@siu.edu> | 2017-02-26 11:14:31 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-03-07 13:23:42 -0600 |
commit | 7394b069537ed7a490a343381d62862eb22abdcf (patch) | |
tree | c8bff4f88cf962ec4148a2e133bf959035feedb7 /inc/quadtree.hpp | |
parent | e54170cfb8c0fb99ecdc3b1e57e832dec58ee76e (diff) |
-REMOVED ENTITY, RESOURCE, AND CREATURE !
-replaced them all with one class, organism (always subject to change)
-the dna type now is what differs creatures and resources
-removed dead constants
-may be a rogue segfault
-also weird artifacts start showing if running long
Diffstat (limited to 'inc/quadtree.hpp')
-rw-r--r-- | inc/quadtree.hpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/inc/quadtree.hpp b/inc/quadtree.hpp index bf308f8..8520584 100644 --- a/inc/quadtree.hpp +++ b/inc/quadtree.hpp @@ -4,9 +4,7 @@ #include <vector>
#include "constants.hpp"
-#include "creature.hpp"
-#include "resource.hpp"
-#include "entity.hpp"
+#include "organism.hpp"
#include "rectangle.hpp"
#include "opengl/graphicsdata.hpp"
@@ -18,10 +16,10 @@ class Quadtree { Quadtree(int pLevel,Rectangle pBounds);
void clear();
- void insert(Entity* iter);
+ void insert(Organism* iter);
- std::vector<Entity*> retrieve(std::vector<Entity*> returnObject, GraphicsData obj);
- std::vector<Entity*> objects;
+ std::vector<Organism*> retrieve(std::vector<Organism*> returnObject, GraphicsData obj);
+ std::vector<Organism*> objects;
Quadtree* nodes;
|