From 1ddb996ac4a4fc78e5484acdadac2df95006b632 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 1 Aug 2015 12:56:55 -0500 Subject: pushing before format --- inc/creature.hpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'inc') diff --git a/inc/creature.hpp b/inc/creature.hpp index 24cad37..64efd26 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -13,19 +13,30 @@ class Creature: public Entity bool Action(); void Priority(); Location getLocation(); - void give(vector n){nR=n;}; + void giveR(vector n){nR=n;}; + void giveC(vector n){nC=n;}; int getHealth(){return health;}; double Distance(Location A, Location B); + bool doesItHaveTarget(); + int getBestSense(){return bestSense;}; private: int xTarget; //x-coordinate of creature's target position int yTarget; //y-coordinate of creature's target position + bool hasTarget; + bool wandering; + int health; //health of a creature (0-100) + int maxHealth; int hunger; //value associated with a creatures want to find food (0-100) int speed = 1; - vector nR; //vector containing objects near the creature - int n; // counter for which place in resource array is targeted + bool able; // ability to reproduce + int bestSense = 100; // Distance it can see/smell/hear + + vector nR; //vector containing resources near the creature + vector nC; //vector containing creatures near the creature + int n; // counter for which place in resource array is targeted }; #endif -- cgit v1.2.3