diff options
author | tom <tom@ground-control> | 2016-05-02 16:29:28 -0500 |
---|---|---|
committer | tom <tom@ground-control> | 2016-05-02 16:29:28 -0500 |
commit | eac63735fb84ba3b59b5fc887d959e1492ef246d (patch) | |
tree | f5feb17bb2cf4e909b349c154a74a396e3b7fa97 /inc | |
parent | 084d556f831832c1ca15d1e7cd52944815d9beea (diff) |
spring cleaning
Diffstat (limited to 'inc')
-rw-r--r-- | inc/creature.hpp | 4 |
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;}; |