summaryrefslogtreecommitdiff
path: root/src/actormanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 21:45:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 21:45:33 +0300
commitadc96cc9f4247ceafc5fde66055456494861b139 (patch)
treede2b3d96297bce39f7e487ba135116c5f2aaaf3e /src/actormanager.h
parentdc6de526dbdf0145fa3ac0a65d485f40b1722199 (diff)
downloadplus-adc96cc9f4247ceafc5fde66055456494861b139.tar.gz
plus-adc96cc9f4247ceafc5fde66055456494861b139.tar.bz2
plus-adc96cc9f4247ceafc5fde66055456494861b139.tar.xz
plus-adc96cc9f4247ceafc5fde66055456494861b139.zip
Remove default parameters from actormanager.cpp
Diffstat (limited to 'src/actormanager.h')
-rw-r--r--src/actormanager.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/actormanager.h b/src/actormanager.h
index 6fdf8d64c..f254dd12e 100644
--- a/src/actormanager.h
+++ b/src/actormanager.h
@@ -130,14 +130,15 @@ class ActorManager final: public ConfigListener
/**
* Returns a being at specific coordinates.
*/
- Being *findBeing(const int x, const int y, const ActorTypeT
- type = ActorType::Unknown) const A_WARN_UNUSED;
+ Being *findBeing(const int x,
+ const int y,
+ const ActorTypeT type) const A_WARN_UNUSED;
/**
* Returns a being at the specific pixel.
*/
Being *findBeingByPixel(const int x, const int y,
- const AllPlayers allPlayers = AllPlayers_false)
+ const AllPlayers allPlayers)
const A_WARN_UNUSED;
/**
@@ -195,16 +196,14 @@ class ActorManager final: public ConfigListener
* Finds a being by name and (optionally) by type.
*/
Being *findBeingByName(const std::string &name,
- const ActorTypeT
- type = ActorType::Unknown)
+ const ActorTypeT type)
const A_WARN_UNUSED;
/**
* Finds a nearest being by name and (optionally) by type.
*/
Being *findNearestByName(const std::string &name,
- const ActorTypeT &type
- = ActorType::Unknown) const A_WARN_UNUSED;
+ const ActorTypeT &type) const A_WARN_UNUSED;
/**
* Finds most damaged player, non-enemy and alive
@@ -293,7 +292,7 @@ class ActorManager final: public ConfigListener
const int y1,
const int x2,
const int y2,
- const bool serverBuggy = false) const;
+ const bool serverBuggy) const;
bool pickUpNearest(const int x, const int y, int maxdist) const;
@@ -396,8 +395,8 @@ class ActorManager final: public ConfigListener
bool validateBeing(const Being *const aroundBeing,
Being *const being,
const ActorTypeT &type,
- const Being *const excluded = nullptr,
- const int maxCost = 20) const A_WARN_UNUSED;
+ const Being *const excluded,
+ const int maxCost) const A_WARN_UNUSED;
Being *findNearestLivingBeing(const Being *const aroundBeing,
const int maxdist,