advances the unit at loc if it has enough experience, maximum 20 times. More...
#include <attack.hpp>
Public Member Functions | |
advance_unit_params (const map_location &loc) | |
advance_unit_params & | ai_advancements (const ai::unit_advancements_aspect &value) |
advance_unit_params & | force_dialog (bool value) |
advance_unit_params & | fire_events (bool value) |
advance_unit_params & | animate (bool value) |
Private Attributes | |
const map_location & | loc_ |
const ai::unit_advancements_aspect * | ai_advancements_ |
bool | force_dialog_ |
bool | fire_events_ |
bool | animate_ |
Friends | |
void | advance_unit_at (const advance_unit_params &) |
advances the unit at loc if it has enough experience, maximum 20 times.
if the unit is on the currently active side, and that side is controlled by a human, a dialog pops up. if we are in a non mp game, and the side is controlled by a human then a dialog is shown too. if the side is controlled by an ai, and if ai_advancement is passed, then ai_advancement will be used. otherwise a random decision will be taken.
this method is currently not used by unstore_unit, if we want to do that we'd need to allow more arguments (animate, fire_events).
Definition at line 214 of file attack.hpp.
|
inline |
Definition at line 216 of file attack.hpp.
|
inline |
Definition at line 217 of file attack.hpp.
References ai_advancements_.
|
inline |
|
inline |
Definition at line 219 of file attack.hpp.
References fire_events_.
Referenced by intf_advance_unit().
|
inline |
Definition at line 218 of file attack.hpp.
References force_dialog_.
|
friend |
Definition at line 1478 of file attack.cpp.
|
private |
Definition at line 224 of file attack.hpp.
Referenced by advance_unit_at(), and ai_advancements().
|
private |
Definition at line 227 of file attack.hpp.
Referenced by advance_unit_at(), and animate().
|
private |
Definition at line 226 of file attack.hpp.
Referenced by advance_unit_at(), and fire_events().
|
private |
Definition at line 225 of file attack.hpp.
Referenced by advance_unit_at(), and force_dialog().
|
private |
Definition at line 223 of file attack.hpp.
Referenced by advance_unit_at().