summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authortom <tom@ground-control>2016-05-02 16:29:28 -0500
committertom <tom@ground-control>2016-05-02 16:29:28 -0500
commiteac63735fb84ba3b59b5fc887d959e1492ef246d (patch)
treef5feb17bb2cf4e909b349c154a74a396e3b7fa97 /inc
parent084d556f831832c1ca15d1e7cd52944815d9beea (diff)
spring cleaning
Diffstat (limited to 'inc')
-rw-r--r--inc/creature.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp
index 875b498..f3bd723 100644
--- a/inc/creature.hpp
+++ b/inc/creature.hpp
@@ -12,10 +12,10 @@ class Creature: public Entity
int Behavior();
bool Action();
void Priority();
- Location getLocation();
void giveR(vector<Resource*> n){nR=n;};
void giveC(vector<Creature*> n){nC=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));};
int getHealth(){return health;};
bool doesItHaveTarget(){return hasTarget;};