summaryrefslogtreecommitdiff
path: root/src/actormanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-06 16:29:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-06 16:29:31 +0300
commit5b0c6c5c95645813f96ea413b1c14f2ffc18a481 (patch)
tree15f9a59ac6c585a2391ab5713f8ce2261a105928 /src/actormanager.h
parent7fa78a35307227453ab55c7452e348a40cd41d65 (diff)
downloadmv-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.tar.gz
mv-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.tar.bz2
mv-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.tar.xz
mv-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.zip
Add strong typed bool type AllPlayers.
Diffstat (limited to 'src/actormanager.h')
-rw-r--r--src/actormanager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/actormanager.h b/src/actormanager.h
index 9387b2961..ae4b7217f 100644
--- a/src/actormanager.h
+++ b/src/actormanager.h
@@ -25,6 +25,8 @@
#include "flooritem.h"
+#include "enums/simpletypes.h"
+
#include "listeners/configlistener.h"
#include "utils/stringmap.h"
@@ -105,7 +107,7 @@ class ActorManager final: public ConfigListener
* Returns a being at the specific pixel.
*/
Being *findBeingByPixel(const int x, const int y,
- const bool allPlayers = false)
+ const AllPlayers allPlayers = AllPlayers_false)
const A_WARN_UNUSED;
/**
@@ -113,7 +115,7 @@ class ActorManager final: public ConfigListener
*/
void findBeingsByPixel(std::vector<ActorSprite*> &beings,
const int x, const int y,
- const bool allPlayers) const;
+ const AllPlayers allPlayers) const;
/**
* Returns a portal at the specific tile.