The Battle for Wesnoth  1.19.0-dev
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 155 of file teleport.hpp.

Constructor & Destructor Documentation

◆ manager()

pathfind::manager::manager ( const config cfg)

Member Function Documentation

◆ add()

void pathfind::manager::add ( const teleport_group group)

Definition at line 304 of file teleport.cpp.

References tunnels_.

Referenced by manager(), and game_events::WML_HANDLER_FUNCTION().

◆ get()

const std::vector< teleport_group > & pathfind::manager::get ( ) const

Definition at line 319 of file teleport.cpp.

References tunnels_.

Referenced by pathfind::get_teleport_locations().

◆ next_unique_id()

std::string pathfind::manager::next_unique_id ( )

Definition at line 335 of file teleport.cpp.

References id_.

Referenced by pathfind::teleport_group::teleport_group().

◆ remove()

void pathfind::manager::remove ( const std::string &  id)

Definition at line 308 of file teleport.cpp.

References t, and tunnels_.

Referenced by game_events::WML_HANDLER_FUNCTION().

◆ to_config()

config pathfind::manager::to_config ( ) const

Inherited from savegame_config.

Definition at line 323 of file teleport.cpp.

References config::add_child(), id_, and tunnels_.

Member Data Documentation

◆ id_

int pathfind::manager::id_
private

Definition at line 184 of file teleport.hpp.

Referenced by next_unique_id(), and to_config().

◆ tunnels_

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

Definition at line 183 of file teleport.hpp.

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


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