diff options
author | majortom6 <tombarrett@siu.edu> | 2017-02-26 07:39:15 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-03-07 13:23:42 -0600 |
commit | 2e4d19ba21347cc370d1aae7a57298328b94ca4e (patch) | |
tree | 715f970ec2aa97eeb42a1144a3361df15b599df7 /inc/creature.hpp | |
parent | 72b40aec2addc7b28170ba9364bc0429149b3299 (diff) |
-comepletly removed use of lists in quadtree and creature, using vectors now
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r-- | inc/creature.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
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 <cstdlib> #include <vector> -#include <list> #include <algorithm> #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<Entity*> n){nearMe = {std::begin(n),std::end(n)};}; + void giveNearMe(std::vector<Entity*> n){nearMe = n;}; DNA getDNA(){return myDNA;}; DNA getChildsDNA(){return childsDNA;}; |