diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/creature.hpp | 4 | ||||
-rw-r--r-- | inc/list.hpp | 1 | ||||
-rw-r--r-- | inc/location.hpp | 8 |
3 files changed, 7 insertions, 6 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp index f72dfbc..a0046fb 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -10,14 +10,16 @@ class Creature: public Entity Creature(Window m, std::string s); void Behavior(); void Action(); + void Priority(); Location getLocation(); + void giveKnown(std::vector<Location> Z){K=Z;}; private: int xT; int yT; int hp; int hu; - Location K[3]; + std::vector<Location> K; }; #endif diff --git a/inc/list.hpp b/inc/list.hpp index 203ad7f..96509aa 100644 --- a/inc/list.hpp +++ b/inc/list.hpp @@ -12,6 +12,7 @@ class List List(Window m); void Behavior(); void Place(); + double Distance(Location A, Location B); private: //Window main; diff --git a/inc/location.hpp b/inc/location.hpp index 2042734..6a20b4e 100644 --- a/inc/location.hpp +++ b/inc/location.hpp @@ -5,11 +5,9 @@ class Location { public: Location(){x=y=t=0;}; - Location(int x, int y, int z){}; - int getType(){return t;}; - - private: - int x; + Location(int x1, int y1, int t1){x=x1;y=y1;t=t1;}; + + int x; int y; int t; }; |