From c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 May 2015 18:37:06 +0300 Subject: Add strong typed bool type Enable. --- src/statuseffect.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/statuseffect.h') 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 #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 -- cgit v1.2.3-70-g09d2