summaryrefslogtreecommitdiff
path: root/inc/creature.hpp
blob: 9bb73ee5fbc69f4148fae67c344741ce23fee063 (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 objects near the creature
};

#endif