#include <unit.hpp>
Public Member Functions | |
temporary_unit_placer (unit_map &m, const gamemap::location &loc, const unit &u) | |
~temporary_unit_placer () | |
Private Attributes | |
unit_map & | m_ |
const gamemap::location & | loc_ |
std::pair< gamemap::location, unit > * | temp_ |
On destruction, it restores the unit map to its original.
Definition at line 470 of file unit.hpp.
temporary_unit_placer::temporary_unit_placer | ( | unit_map & | m, | |
const gamemap::location & | loc, | |||
const unit & | u | |||
) |
temporary_unit_placer::~temporary_unit_placer | ( | ) |
Definition at line 2927 of file unit.cpp.
References unit_map::add(), unit_map::erase(), loc_, m_, and temp_.
unit_map& temporary_unit_placer::m_ [private] |
const gamemap::location& temporary_unit_placer::loc_ [private] |
std::pair<gamemap::location,unit>* temporary_unit_placer::temp_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |