summaryrefslogtreecommitdiff
path: root/inc/list.hpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-26 11:14:31 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:23:42 -0600
commit7394b069537ed7a490a343381d62862eb22abdcf (patch)
treec8bff4f88cf962ec4148a2e133bf959035feedb7 /inc/list.hpp
parente54170cfb8c0fb99ecdc3b1e57e832dec58ee76e (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/list.hpp')
-rw-r--r--inc/list.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/inc/list.hpp b/inc/list.hpp
index f62112c..93a0537 100644
--- a/inc/list.hpp
+++ b/inc/list.hpp
@@ -5,22 +5,21 @@
#include <vector>
#include "constants.hpp"
-#include "creature.hpp"
-#include "resource.hpp"
+#include "organism.hpp"
#include "quadtree.hpp"
class List
{
public:
List();
- void Behavior();
- void Place();
- void Remove();
+ void Behavior();
+ void Place();
+ void Remove();
- std::vector<Entity*> getNear(Creature c);
+ std::vector<Organism*> getNear(Organism o);
- std::list<Resource> resources;
- std::list<Creature> creatures;
+ std::list<Organism> resources;
+ std::list<Organism> creatures;
Quadtree tree;
std::vector<GraphicsData> drawQuadTree();