diff options
Diffstat (limited to 'examples/basic/src/interfaces/enemy.hpp')
-rw-r--r-- | examples/basic/src/interfaces/enemy.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/basic/src/interfaces/enemy.hpp b/examples/basic/src/interfaces/enemy.hpp index 5f49ca6..5ad7d90 100644 --- a/examples/basic/src/interfaces/enemy.hpp +++ b/examples/basic/src/interfaces/enemy.hpp @@ -4,15 +4,19 @@ #include <memory> +// NOLINTNEXTLINE(modernize-avoid-c-arrays, cppcoreguidelines-avoid-c-arrays) constexpr char SMALL_ENEMY_TAG[] = "small"; + +// NOLINTNEXTLINE(modernize-avoid-c-arrays, cppcoreguidelines-avoid-c-arrays) constexpr char BIG_ENEMY_TAG[] = "big"; +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class IEnemy { public: virtual ~IEnemy() noexcept = default; - virtual int get_health() const noexcept = 0; + [[nodiscard]] virtual auto get_health() const noexcept -> int = 0; virtual void do_damage(int damage) noexcept = 0; }; |