blob: b345f7f09f30773d62185c9a81b894ed5d052233 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "interfaces/enemy.hpp"
#include <yacppdic/auto_wirable.hpp>
class Enemy : public IEnemy, public yacppdic::AutoWirable<IEnemy, Enemy>
{
public:
Enemy(int health) noexcept;
int get_health() const noexcept override;
void do_damage(int damage) noexcept override;
private:
int _health = 120;
};
|