The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Private Attributes | List of all members
pathfind::teleport_group Class Reference

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

Detailed Description

Definition at line 32 of file teleport.hpp.

Constructor & Destructor Documentation

◆ teleport_group() [1/2]

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

◆ teleport_group() [2/2]

pathfind::teleport_group::teleport_group ( const vconfig cfg,
bool  way_back = false 
)

Member Function Documentation

◆ allow_vision()

bool pathfind::teleport_group::allow_vision ( ) const

Definition at line 149 of file teleport.cpp.

References cfg_.

◆ always_visible()

bool pathfind::teleport_group::always_visible ( ) const

Definition at line 141 of file teleport.cpp.

References cfg_.

◆ get_teleport_id()

const std::string & pathfind::teleport_group::get_teleport_id ( ) const

Definition at line 137 of file teleport.cpp.

References id_.

◆ get_teleport_pair()

void pathfind::teleport_group::get_teleport_pair ( teleport_pair loc_pair,
const unit u,
const bool  ignore_units 
) const

Definition at line 108 of file teleport.cpp.

References cfg_, config::child_or_empty(), resources::filter_con, and reversed_.

◆ pass_allied_units()

bool pathfind::teleport_group::pass_allied_units ( ) const

Definition at line 145 of file teleport.cpp.

References cfg_.

◆ to_config()

config pathfind::teleport_group::to_config ( ) const

Inherited from savegame_config.

Definition at line 153 of file teleport.cpp.

References cfg_, id_, and reversed_.

Member Data Documentation

◆ cfg_

config pathfind::teleport_group::cfg_
private

◆ id_

std::string pathfind::teleport_group::id_
private

Definition at line 89 of file teleport.hpp.

Referenced by get_teleport_id(), teleport_group(), and to_config().

◆ reversed_

bool pathfind::teleport_group::reversed_
private

Definition at line 88 of file teleport.hpp.

Referenced by get_teleport_pair(), teleport_group(), and to_config().


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