The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
pathfind::manager Class Reference

#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_grouptunnels_
 
int id_
 

Detailed Description

Definition at line 143 of file teleport.hpp.

Constructor & Destructor Documentation

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().

Member Function Documentation

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_.

Member Data Documentation

int pathfind::manager::id_
private

Definition at line 172 of file teleport.hpp.

Referenced by next_unique_id(), and to_config().

std::vector<teleport_group> pathfind::manager::tunnels_
private

Definition at line 171 of file teleport.hpp.

Referenced by add(), get(), remove(), and to_config().


The documentation for this class was generated from the following files: