This object is used to temporary remove a unit from the unit map. More...
#include <unit.hpp>

Public Member Functions | |
| temporary_unit_remover (unit_map &m, const map_location &loc) | |
| virtual | ~temporary_unit_remover () |
Private Attributes | |
| unit_map & | m_ |
| const map_location | loc_ |
| unit * | temp_ |
This object is used to temporary remove a unit from the unit map.
On destruction, it restores the unit map to its original. unit_map iterators to this unit must not be accessed while the unit is temporarily removed, otherwise a collision will happen when trying to reinsert the unit.
Definition at line 574 of file unit.hpp.
| temporary_unit_remover::temporary_unit_remover | ( | unit_map & | m, | |
| const map_location & | loc | |||
| ) |
| temporary_unit_remover::~temporary_unit_remover | ( | ) | [virtual] |
Definition at line 3118 of file unit.cpp.
References unit_map::insert(), m_, and temp_.

const map_location temporary_unit_remover::loc_ [private] |
unit_map& temporary_unit_remover::m_ [private] |
Definition at line 580 of file unit.hpp.
Referenced by ~temporary_unit_remover().
unit* temporary_unit_remover::temp_ [private] |
Definition at line 582 of file unit.hpp.
Referenced by ~temporary_unit_remover().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:14:34 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |