blob: cfdd317462eaef1a353117e848146d6d6a4e4772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef creature_h
#define creature_h
#include "entity.hpp"
#include "location.hpp"
class Creature: public Entity
{
public:
Creature(Window m, std::string s);
void Behavior();
void Action();
void Priority();
Location getLocation();
void giveKnown(std::vector<Location> Z){location = Z;};
int getHealth(){return health;};
private:
int xTarget; //x-coordinate of creature's target position
int yTarget; //y-coordinate of creature's target position
int health; //health of a creature (0-100)
int hunger; //value associated with a creatures want to find food (0-100)
std::vector<Location> location; //vector containing objects near the creature
};
#endif
|