blob: 9a26ee8093e2d5adb8c79785fbd80021d897b92d (
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
|
#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;};
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 creatures location on window or target location?
};
#endif
|