summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.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/being/actorsprite.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/being/actorsprite.h')
-rw-r--r--src/being/actorsprite.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h
index 7b5da3aa7..f5d4f0214 100644
--- a/src/being/actorsprite.h
+++ b/src/being/actorsprite.h
@@ -22,6 +22,8 @@
#ifndef BEING_ACTORSPRITE_H
#define BEING_ACTORSPRITE_H
+#include "enums/simpletypes.h"
+
#include "resources/map/blocktype.h"
#include "resources/map/mapconsts.h"
@@ -118,7 +120,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
mStunMode = stunMode;
}
- void setStatusEffect(const int index, const bool active);
+ void setStatusEffect(const int index, const Enable active);
/**
* A status effect block is a 16 bit mask of status effects. We assign
@@ -186,7 +188,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
* Notify self that a status effect has flipped.
* The new flag is passed.
*/
- virtual void updateStatusEffect(const int index, const bool newStatus);
+ virtual void updateStatusEffect(const int index, const Enable newStatus);
/**
* Handle an update to a status or stun effect