From b97a54b8acd113e99871fdb0f683e27e0912bf42 Mon Sep 17 00:00:00 2001 From: tom Date: Wed, 11 Jan 2017 02:19:07 -0600 Subject: -removed all magic numbers and placed them in a constants header -removed unused libraries and redid all header files --- inc/creature.hpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'inc/creature.hpp') diff --git a/inc/creature.hpp b/inc/creature.hpp index bc23652..8515bc0 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -1,9 +1,12 @@ #ifndef creature_h #define creature_h -#include "entity.hpp" -#include "resource.hpp" +#include +#include + #include "location.hpp" +#include "entity.hpp" +#include "constants.hpp" class Creature: public Entity { @@ -27,11 +30,12 @@ class Creature: public Entity bool wander; Location wTarget; int health; + int reach = CREATURE_REACH; int maxHealth; bool hungry; - int speed = 1; + int speed = CREATURE_SPEED; bool able; - int bestSense = 100; + int bestSense = CREATURE_BEST_SENSE; list N; Entity *target; -- cgit v1.2.3