aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/interfaces/enemy.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-11 22:38:10 +0200
committerHampusM <hampus@hampusmat.com>2022-06-11 22:38:10 +0200
commit7a191f97ce0c222566973f9e18b43036844ecf3c (patch)
tree9b4ea86c96aded3319e410d1222c9ff0c6f66cb6 /examples/basic/src/interfaces/enemy.hpp
parent77d97c914a157037b6729d0f3b0fb265aacf4741 (diff)
refactor!: simplify tagging
Diffstat (limited to 'examples/basic/src/interfaces/enemy.hpp')
-rw-r--r--examples/basic/src/interfaces/enemy.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/basic/src/interfaces/enemy.hpp b/examples/basic/src/interfaces/enemy.hpp
index 5ad7d90..d0b6337 100644
--- a/examples/basic/src/interfaces/enemy.hpp
+++ b/examples/basic/src/interfaces/enemy.hpp
@@ -1,14 +1,12 @@
#pragma once
#include <yacppdic/factory.hpp>
+#include <yacppdic/tagging.hpp>
#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";
+constexpr yacppdic::Tag SMALL_ENEMY_TAG = "small";
+constexpr yacppdic::Tag BIG_ENEMY_TAG = "big";
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IEnemy