22 lines
339 B
C++
22 lines
339 B
C++
![]() |
#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
|