summaryrefslogtreecommitdiff
path: root/src/statuseffect.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-06 18:37:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-06 18:37:06 +0300
commitc25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31 (patch)
treeac124c630bc17ef10a8885a49fbb387f7091d15d /src/statuseffect.h
parent88697bc3503090194877b241b987ddc751034166 (diff)
downloadmv-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.gz
mv-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.bz2
mv-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.xz
mv-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.zip
Add strong typed bool type Enable.
Diffstat (limited to 'src/statuseffect.h')
-rw-r--r--src/statuseffect.h6
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