From 1da46794f74ebd8f445fcd70cbe0420eadb648e4 Mon Sep 17 00:00:00 2001 From: tom Date: Sun, 12 Feb 2017 07:57:21 -0600 Subject: -removed grouping --- inc/creature.hpp | 7 ++++--- inc/list.hpp | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'inc') diff --git a/inc/creature.hpp b/inc/creature.hpp index 95b1329..c3ed2d8 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -2,7 +2,8 @@ #define creature_h #include -#include +#include +#include #include "entity.hpp" #include "constants.hpp" @@ -20,7 +21,7 @@ class Creature: public Entity void checkTarget(); void Move(SDL_Rect R); void impregnate(); - void giveN(std::list n){N = n;}; + void giveN(std::vector n){N = n;}; Dna getDNA(){return mine;}; int getHealth(){return health;}; @@ -32,7 +33,7 @@ class Creature: public Entity private: SDL_Rect wTarget; Entity *target; - std::list N; + std::vectorN; Dna mine; int health; diff --git a/inc/list.hpp b/inc/list.hpp index 7d3d8a2..64b3ec5 100644 --- a/inc/list.hpp +++ b/inc/list.hpp @@ -3,6 +3,7 @@ #include #include +#include #include "functions.hpp" #include "creature.hpp" @@ -17,7 +18,7 @@ class List void Behavior(); void Place(); void Remove(); - std::list getNear(Creature C); + std::vector getNear(Creature C); private: Window main = Window("do not create new window."); -- cgit v1.2.3