diff options
author | tom <tom@apollo> | 2017-01-11 02:19:07 -0600 |
---|---|---|
committer | tom <tom@apollo> | 2017-01-11 02:19:07 -0600 |
commit | b97a54b8acd113e99871fdb0f683e27e0912bf42 (patch) | |
tree | 0c32320f225569da513a505d73dd72a506f08c95 /inc/creature.hpp | |
parent | f6f6d81c5634f659693914b7b74efcdd39ba5d4f (diff) |
-removed all magic numbers and placed them in a constants header
-removed unused libraries and redid all header files
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r-- | inc/creature.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
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 <SDL2/SDL.h> +#include <list> + #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<Entity*> N; Entity *target; |