#include <unit_map.hpp>
Public Member Functions | |
xy_accessor (const unit_iterator &i) | |
xy_accessor (const unit_xy_iterator &i) | |
xy_accessor () | |
std::pair< gamemap::location, unit > * | operator-> () |
std::pair< gamemap::location, unit > & | operator* () |
bool | valid () |
Private Attributes | |
iterator_counter | counter |
umap::iterator | i_ |
unit_map * | map_ |
gamemap::location | loc_ |
Is valid as long as any unit is in that position. Can switch from invalid to valid.
Definition at line 264 of file unit_map.hpp.
unit_map::xy_accessor::xy_accessor | ( | const unit_iterator & | i | ) |
unit_map::xy_accessor::xy_accessor | ( | const unit_xy_iterator & | i | ) |
Definition at line 265 of file unit_map.cpp.
References loc_, and unit_map::unit_xy_iterator::valid().
unit_map::xy_accessor::xy_accessor | ( | ) | [inline] |
Definition at line 268 of file unit_map.hpp.
std::pair< gamemap::location, unit > * unit_map::xy_accessor::operator-> | ( | ) |
std::pair< gamemap::location, unit > & unit_map::xy_accessor::operator* | ( | ) |
bool unit_map::xy_accessor::valid | ( | ) |
Definition at line 281 of file unit_map.cpp.
References unit_map::find(), unit_map::unit_iterator::i_, i_, loc_, map_, and unit_map::unit_iterator::valid().
Referenced by unit_map::erase(), operator*(), and operator->().
Definition at line 276 of file unit_map.hpp.
umap::iterator unit_map::xy_accessor::i_ [private] |
unit_map* unit_map::xy_accessor::map_ [private] |
gamemap::location unit_map::xy_accessor::loc_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |