diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-06 18:37:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-06 18:37:06 +0300 |
commit | c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31 (patch) | |
tree | ac124c630bc17ef10a8885a49fbb387f7091d15d /src/statuseffect.h | |
parent | 88697bc3503090194877b241b987ddc751034166 (diff) | |
download | manaplus-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.gz manaplus-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.bz2 manaplus-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.xz manaplus-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.zip |
Add strong typed bool type Enable.
Diffstat (limited to 'src/statuseffect.h')
-rw-r--r-- | src/statuseffect.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/statuseffect.h b/src/statuseffect.h index ce99fa5d8..bd7da5f8d 100644 --- a/src/statuseffect.h +++ b/src/statuseffect.h @@ -23,6 +23,8 @@ #ifndef STATUSEFFECT_H #define STATUSEFFECT_H +#include "enums/simpletypes.h" + #include <string> #include "localconsts.h" @@ -91,7 +93,7 @@ class StatusEffect final * the deactivating effect (false). */ static StatusEffect *getStatusEffect(const int index, - const bool enabling) + const Enable enabling) A_WARN_UNUSED; /** @@ -102,7 +104,7 @@ class StatusEffect final * the deactivating effect (false). */ static StatusEffect *getStunEffect(const int index, - const bool enabling) A_WARN_UNUSED; + const Enable enabling) A_WARN_UNUSED; /** * Maps a block effect index to its corresponding effect index. Block |