diff options
author | tom <tombarrett@siu.edu> | 2017-02-12 07:57:21 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-02-12 07:57:21 -0600 |
commit | 1da46794f74ebd8f445fcd70cbe0420eadb648e4 (patch) | |
tree | fee655a50188e50b7c63d6b855bc671e0a1b0128 /inc/creature.hpp | |
parent | 358ea01c03d787377ef88945706f350befd5b7a9 (diff) |
-removed grouping
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r-- | inc/creature.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 <SDL2/SDL.h> -#include <list> +#include <vector> +#include <algorithm> #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<Entity*> n){N = n;}; + void giveN(std::vector<Entity*> 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<Entity*> N; + std::vector<Entity*>N; Dna mine; int health; |