diff options
Diffstat (limited to 'examples/basic/src/enemy.hpp')
-rw-r--r-- | examples/basic/src/enemy.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/basic/src/enemy.hpp b/examples/basic/src/enemy.hpp index b345f7f..a6fc778 100644 --- a/examples/basic/src/enemy.hpp +++ b/examples/basic/src/enemy.hpp @@ -7,9 +7,9 @@ class Enemy : public IEnemy, public yacppdic::AutoWirable<IEnemy, Enemy> { public: - Enemy(int health) noexcept; + explicit Enemy(int health) noexcept; - int get_health() const noexcept override; + [[nodiscard]] auto get_health() const noexcept -> int override; void do_damage(int damage) noexcept override; |