#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 |
bool | pass_allied_units () const |
bool | allow_vision () const |
config | to_config () const |
Inherited from savegame_config. More... | |
Private Attributes | |
config | cfg_ |
bool | reversed_ |
std::string | id_ |
Definition at line 37 of file teleport.hpp.
pathfind::teleport_group::teleport_group | ( | const config & | cfg | ) |
Definition at line 44 of file teleport.cpp.
References cfg_, config::child_count(), config::has_attribute(), missing_mandatory_wml_key(), and VALIDATE.
pathfind::teleport_group::teleport_group | ( | const vconfig & | cfg, |
bool | way_back = false |
||
) |
Definition at line 54 of file teleport.cpp.
References cfg_, config::child_count(), id_, pathfind::manager::next_unique_id(), reversed_, resources::tunnels, and VALIDATE.
bool pathfind::teleport_group::allow_vision | ( | ) | const |
Definition at line 152 of file teleport.cpp.
References cfg_.
bool pathfind::teleport_group::always_visible | ( | ) | const |
Definition at line 144 of file teleport.cpp.
References cfg_.
const std::string & pathfind::teleport_group::get_teleport_id | ( | ) | const |
Definition at line 140 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 113 of file teleport.cpp.
References cfg_, config::child_or_empty(), resources::filter_con, unit_filter::matches(), and reversed_.
bool pathfind::teleport_group::pass_allied_units | ( | ) | const |
Definition at line 148 of file teleport.cpp.
References cfg_.
config pathfind::teleport_group::to_config | ( | ) | const |
Inherited from savegame_config.
Definition at line 156 of file teleport.cpp.
|
private |
Definition at line 92 of file teleport.hpp.
Referenced by allow_vision(), always_visible(), get_teleport_pair(), pass_allied_units(), teleport_group(), and to_config().
|
private |
Definition at line 94 of file teleport.hpp.
Referenced by get_teleport_id(), teleport_group(), and to_config().
|
private |
Definition at line 93 of file teleport.hpp.
Referenced by get_teleport_pair(), teleport_group(), and to_config().