Public Member Functions | Private Attributes

temporary_unit_remover Struct Reference

This object is used to temporary remove a unit from the unit map. More...

#include <unit.hpp>

Collaboration diagram for temporary_unit_remover:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 temporary_unit_remover (unit_map &m, const map_location &loc)
virtual ~temporary_unit_remover ()

Private Attributes

unit_mapm_
const map_location loc_
unittemp_

Detailed Description

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.


Constructor & Destructor Documentation

temporary_unit_remover::temporary_unit_remover ( unit_map m,
const map_location loc 
)

Definition at line 3113 of file unit.cpp.

temporary_unit_remover::~temporary_unit_remover (  )  [virtual]

Definition at line 3118 of file unit.cpp.

References unit_map::insert(), m_, and temp_.

Here is the call graph for this function:


Member Data Documentation

Definition at line 581 of file unit.hpp.

Definition at line 580 of file unit.hpp.

Referenced by ~temporary_unit_remover().

Definition at line 582 of file unit.hpp.

Referenced by ~temporary_unit_remover().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:14:34 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs