#include <teleport.hpp>
Public Member Functions | |
manager (const config &cfg) | |
void | add (const teleport_group &group) |
void | remove (const std::string &id) |
const std::vector < teleport_group > & | get () const |
config | to_config () const |
Inherited from savegame_config. More... | |
std::string | next_unique_id () |
Private Attributes | |
std::vector< teleport_group > | tunnels_ |
int | id_ |
Definition at line 143 of file teleport.hpp.
pathfind::manager::manager | ( | const config & | cfg | ) |
Definition at line 255 of file teleport.cpp.
References add(), config::child(), config::child_count(), i, and lg::wml_error().
void pathfind::manager::add | ( | const teleport_group & | group | ) |
Definition at line 268 of file teleport.cpp.
References tunnels_.
Referenced by manager(), and game_events::WML_HANDLER_FUNCTION().
const std::vector< teleport_group > & pathfind::manager::get | ( | ) | const |
Definition at line 283 of file teleport.cpp.
References tunnels_.
Referenced by pathfind::get_teleport_locations().
std::string pathfind::manager::next_unique_id | ( | ) |
Definition at line 299 of file teleport.cpp.
References id_.
Referenced by pathfind::teleport_group::teleport_group().
void pathfind::manager::remove | ( | const std::string & | id | ) |
Definition at line 272 of file teleport.cpp.
References tunnels_.
Referenced by game_events::WML_HANDLER_FUNCTION().
config pathfind::manager::to_config | ( | ) | const |
Inherited from savegame_config.
Definition at line 287 of file teleport.cpp.
References config::add_child(), id_, floating_point_emulation::detail::store(), and tunnels_.
|
private |
Definition at line 172 of file teleport.hpp.
Referenced by next_unique_id(), and to_config().
|
private |
Definition at line 171 of file teleport.hpp.
Referenced by add(), get(), remove(), and to_config().