From 7394b069537ed7a490a343381d62862eb22abdcf Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 26 Feb 2017 11:14:31 -0600 Subject: -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 --- inc/list.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'inc/list.hpp') 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 #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 getNear(Creature c); + std::vector getNear(Organism o); - std::list resources; - std::list creatures; + std::list resources; + std::list creatures; Quadtree tree; std::vector drawQuadTree(); -- cgit v1.2.3