DuPr/include/Player.hpp

22 lines
339 B
C++
Raw Permalink Normal View History

2019-06-13 08:56:12 +02:00
#ifndef _PLAYER_HPP_
#define _PLAYER_HPP_
class Player: public Entity
{
public:
Player(int posx, int posy);
bool driver(int key);
bool displayStats();
virtual void action(int px, int py){};
virtual bool damage(int dmg);
int x;
int y;
int perc;
int dmg;
private:
int hp;
int max_hp;
};
#endif