advances the unit at loc if it has enough experience, maximum 20 times. More...
#include <advancement.hpp>
Public Member Functions | |
advance_unit_params (const map_location &loc) | |
advance_unit_params & | force_dialog (bool value) |
advance_unit_params & | fire_events (bool value) |
advance_unit_params & | animate (bool value) |
Private Attributes | |
map_location | loc_ |
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.
Definition at line 38 of file advancement.hpp.
|
inline |
Definition at line 40 of file advancement.hpp.
|
inline |
Definition at line 43 of file advancement.hpp.
References animate_.
Referenced by intf_advance_unit().
|
inline |
Definition at line 42 of file advancement.hpp.
References fire_events_.
Referenced by intf_advance_unit().
|
inline |
Definition at line 41 of file advancement.hpp.
References force_dialog_.
|
friend |
Definition at line 269 of file advancement.cpp.
|
private |
Definition at line 49 of file advancement.hpp.
Referenced by animate().
|
private |
Definition at line 48 of file advancement.hpp.
Referenced by fire_events().
|
private |
Definition at line 47 of file advancement.hpp.
Referenced by force_dialog().
|
private |
Definition at line 46 of file advancement.hpp.