Entity.h 736 Bytes
Newer Older
Noah Olsen's avatar
commit  
Noah Olsen committed
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#ifndef ENTITY_H
#define ENTITY_H

class MoveSet;

class Entity {
public:
  bool checkHealth();
  void move();
  void setPos();
  virtual void action() const = 0;

protected:
  // MoveSet* moves;
  int colPos;
  int rowPos;
  int con;
  int str;
  int dex;
};

class Player : public Entity {
public:
  Player();
  void action();
  void setClass(char Class);

private:
  // Vector of inventory items
  // Vector of equipped items
};

class Enemy : public Entity {
public:
  Enemy(bool boss);
  void action();
  void setBossClassByChoice(int boss);
  void setBossClassByRand();
  void setClassByRand();
  void setClassByChoice(int monster);
  bool seesPlayer();

private:
  // Vector of drop items
  // Vector of equipped items
};

#endif