aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/enemy.hpp
blob: a6fc7789cccbd0c77457fd7958608dddf6e675bd (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:
	explicit Enemy(int health) noexcept;

	[[nodiscard]] auto get_health() const noexcept -> int override;

	void do_damage(int damage) noexcept override;

private:
	int _health = 120;
};