summaryrefslogtreecommitdiff
path: root/src/actormanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/actormanager.h')
-rw-r--r--src/actormanager.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/actormanager.h b/src/actormanager.h
index 5c089b377..e30a7011b 100644
--- a/src/actormanager.h
+++ b/src/actormanager.h
@@ -134,10 +134,9 @@ class ActorManager final: public ConfigListener
*/
Being *findNearestLivingBeing(const int x, const int y,
int maxTileDist,
- const ActorType::Type
- type = ActorType::UNKNOWN,
- const Being *const
- excluded = nullptr) const A_WARN_UNUSED;
+ const ActorType::Type type,
+ const Being *const excluded)
+ const A_WARN_UNUSED;
/**
* Returns a being nearest to another being.
@@ -149,8 +148,8 @@ class ActorManager final: public ConfigListener
*/
Being *findNearestLivingBeing(const Being *const aroundBeing,
const int maxTileDist,
- const ActorType::Type
- type = ActorType::UNKNOWN)
+ const ActorType::Type type,
+ const bool allowSort)
const A_WARN_UNUSED;
/**
@@ -158,7 +157,8 @@ class ActorManager final: public ConfigListener
*/
Being *findBeingByName(const std::string &name,
const ActorType::Type
- type = ActorType::UNKNOWN) const A_WARN_UNUSED;
+ type = ActorType::UNKNOWN)
+ const A_WARN_UNUSED;
/**
* Finds a nearest being by name and (optionally) by type.
@@ -320,8 +320,9 @@ class ActorManager final: public ConfigListener
const int maxdist,
const ActorType::Type &type,
const int x, const int y,
- const Being *const
- excluded = nullptr) const A_WARN_UNUSED;
+ const Being *const excluded,
+ const bool allowSort)
+ const A_WARN_UNUSED;
void loadAttackList();