15 lines
244 B
C++
15 lines
244 B
C++
|
#ifndef _ENEMY_HPP_
|
||
|
#define _ENEMY_HPP_
|
||
|
#include "../include/Entity.hpp"
|
||
|
|
||
|
class Enemy: public Entity
|
||
|
{
|
||
|
public:
|
||
|
virtual void action(int px, int py) = 0;
|
||
|
virtual bool damage(int dmg);
|
||
|
protected:
|
||
|
int hp;
|
||
|
int dmg;
|
||
|
};
|
||
|
#endif
|