diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-24 22:49:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-24 22:49:20 +0300 |
commit | 84d56b88a03054d35b84dc1ecbd7ad4614f8ac86 (patch) | |
tree | a6de73a2a93ac287413917c1ba540dff6f65da5d /src/actormanager.h | |
parent | 0a4da74459471686e153b600253f12706d0ce8de (diff) | |
download | mv-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.gz mv-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.bz2 mv-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.xz mv-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.zip |
Add new action for select closest monster without filters and sorting.
By default unassigned.
Diffstat (limited to 'src/actormanager.h')
-rw-r--r-- | src/actormanager.h | 19 |
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(); |