summaryrefslogtreecommitdiff
path: root/inc/creature.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r--inc/creature.hpp4
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;};