diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-14 18:05:46 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-14 18:05:46 +0200 |
commit | 9d50e72892f84c602df3c328259cdfdd325bca12 (patch) | |
tree | 0903591c733b6283048f83b9527ba84239fe35d9 /examples/basic/src/interfaces | |
parent | 10afd2aa0a35b45300cfb60bea656edf08c2b78c (diff) |
docs: basic example use constants for enemies's health
Diffstat (limited to 'examples/basic/src/interfaces')
-rw-r--r-- | examples/basic/src/interfaces/enemy.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/basic/src/interfaces/enemy.hpp b/examples/basic/src/interfaces/enemy.hpp index d0b6337..7132125 100644 --- a/examples/basic/src/interfaces/enemy.hpp +++ b/examples/basic/src/interfaces/enemy.hpp @@ -8,6 +8,9 @@ constexpr yacppdic::Tag SMALL_ENEMY_TAG = "small"; constexpr yacppdic::Tag BIG_ENEMY_TAG = "big"; +constexpr auto SMALL_ENEMY_HEALTH = 65; +constexpr auto BIG_ENEMY_HEALTH = 130; + // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class IEnemy { |