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