Object which temporarily resets a unit's movement. More...
#include <unit.hpp>
Public Member Functions | |
unit_movement_resetter (unit &u, bool operate=true) | |
~unit_movement_resetter () | |
Private Attributes | |
unit & | u_ |
int | moves_ |
Object which temporarily resets a unit's movement.
unit_movement_resetter::unit_movement_resetter | ( | unit & | u, |
bool | operate = true |
||
) |
Definition at line 2392 of file unit.cpp.
References unit::set_movement(), and unit::total_movement().
unit_movement_resetter::~unit_movement_resetter | ( | ) |
Definition at line 2400 of file unit.cpp.
References DBG_UT, moves_, unit::set_movement(), u_, and resources::units.
|
private |
Definition at line 569 of file unit.hpp.
Referenced by ~unit_movement_resetter().
|
private |
Definition at line 568 of file unit.hpp.
Referenced by ~unit_movement_resetter().