#include <teleport.hpp>
Public Member Functions | |
teleport_group (const config &cfg) | |
teleport_group (const vconfig &cfg, bool way_back=false) | |
void | get_teleport_pair (teleport_pair &loc_pair, const unit &u, const bool ignore_units) const |
const std::string & | get_teleport_id () const |
bool | always_visible () const |
config | to_config () const |
Inherited from savegame_config. More... | |
Private Attributes | |
config | cfg_ |
bool | reversed_ |
std::string | id_ |
Definition at line 33 of file teleport.hpp.
pathfind::teleport_group::teleport_group | ( | const config & | cfg | ) |
Definition at line 39 of file teleport.cpp.
References cfg_, config::child_count(), and config::has_attribute().
pathfind::teleport_group::teleport_group | ( | const vconfig & | cfg, |
bool | way_back = false |
||
) |
Definition at line 49 of file teleport.cpp.
References cfg_, config::child_count(), id_, pathfind::manager::next_unique_id(), reversed_, and resources::tunnels.
bool pathfind::teleport_group::always_visible | ( | ) | const |
Definition at line 145 of file teleport.cpp.
References cfg_.
const std::string & pathfind::teleport_group::get_teleport_id | ( | ) | const |
Definition at line 141 of file teleport.cpp.
References id_.
void pathfind::teleport_group::get_teleport_pair | ( | teleport_pair & | loc_pair, |
const unit & | u, | ||
const bool | ignore_units | ||
) | const |
Definition at line 107 of file teleport.cpp.
References cfg_, config::child_or_empty(), resources::filter_con, unit::get_location(), terrain_filter::get_locations(), reversed_, resources::units, map_location::x, and map_location::y.
config pathfind::teleport_group::to_config | ( | ) | const |
Inherited from savegame_config.
Definition at line 149 of file teleport.cpp.
|
private |
Definition at line 78 of file teleport.hpp.
Referenced by always_visible(), get_teleport_pair(), teleport_group(), and to_config().
|
private |
Definition at line 80 of file teleport.hpp.
Referenced by get_teleport_id(), teleport_group(), and to_config().
|
private |
Definition at line 79 of file teleport.hpp.
Referenced by get_teleport_pair(), teleport_group(), and to_config().