summaryrefslogtreecommitdiff
path: root/src/actormanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-24 22:49:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-24 22:49:20 +0300
commit84d56b88a03054d35b84dc1ecbd7ad4614f8ac86 (patch)
treea6de73a2a93ac287413917c1ba540dff6f65da5d /src/actormanager.h
parent0a4da74459471686e153b600253f12706d0ce8de (diff)
downloadmanaverse-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.gz
manaverse-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.bz2
manaverse-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.xz
manaverse-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.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();