From e7cac5098145d75a680e35787f7c504caf16965b Mon Sep 17 00:00:00 2001 From: tom Date: Mon, 2 May 2016 22:02:25 -0500 Subject: fixed issue, was related to erasing nodes within vectors while using iterators --- inc/creature.hpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'inc/creature.hpp') diff --git a/inc/creature.hpp b/inc/creature.hpp index 082e8d9..7da82e5 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -12,7 +12,7 @@ class Creature: public Entity void Behavior(); void Action(); void Priority(); - void giveN(vector n){N = n;}; + void giveN(list n){N = n;}; Location getLocation(){return L;}; double Distance(Location A, Location B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));}; @@ -22,8 +22,6 @@ class Creature: public Entity private: bool hasTarget; - bool wandering; - int health; int maxHealth; int hunger; @@ -31,10 +29,8 @@ class Creature: public Entity bool able; int bestSense = 100; - vector N; - Entity *target; - - int n; + list N; + Entity *target; }; #endif -- cgit v1.2.3