From 0846d5802965d257f176e033d7a6ac353ed648f3 Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 19 Feb 2017 12:00:52 -0600 Subject: -speedcaps now working again -creatures now randomize target better again -thats enough for today, src is still a mess and main can be cleaned a bit --- inc/creature.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'inc/creature.hpp') diff --git a/inc/creature.hpp b/inc/creature.hpp index 0f9128f..01f6557 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -2,7 +2,9 @@ #define creature_h #include +#include #include +#include #include "entity.hpp" #include "functions.hpp" @@ -19,7 +21,7 @@ class Creature: public Entity void checkTarget(); void moveTowards(Rectangle t); void impregnate(DNA D); - void giveNearMe(std::list n){nearMe = n;}; + void giveNearMe(std::list n){nearMe = {std::begin(n),std::end(n)};}; DNA getDNA(){return myDNA;}; DNA getChildsDNA(){return childsDNA;}; @@ -32,7 +34,7 @@ class Creature: public Entity private: Rectangle wTarget; Entity* target; - std::list nearMe; + std::vector nearMe; DNA myDNA; DNA childsDNA; -- cgit v1.2.3