From 2e4d19ba21347cc370d1aae7a57298328b94ca4e Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 26 Feb 2017 07:39:15 -0600 Subject: -comepletly removed use of lists in quadtree and creature, using vectors now --- inc/creature.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'inc/creature.hpp') diff --git a/inc/creature.hpp b/inc/creature.hpp index f9cb979..8174cf6 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -1,9 +1,7 @@ #ifndef creature_h #define creature_h -#include #include -#include #include #include "entity.hpp" @@ -21,7 +19,7 @@ class Creature: public Entity void checkTarget(); void moveTowards(Rectangle r); void impregnate(DNA d); - void giveNearMe(std::list n){nearMe = {std::begin(n),std::end(n)};}; + void giveNearMe(std::vector n){nearMe = n;}; DNA getDNA(){return myDNA;}; DNA getChildsDNA(){return childsDNA;}; -- cgit v1.2.3