Public Member Functions | Private Attributes

pathfind::teleport_group Class Reference

#include <teleport.hpp>

Inheritance diagram for pathfind::teleport_group:
Inheritance graph
[legend]
Collaboration diagram for pathfind::teleport_group:
Collaboration graph
[legend]

List of all members.

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
config to_config () const
 Inherited from savegame_config.

Private Attributes

config cfg_
bool reversed_
std::string id_

Detailed Description

Definition at line 35 of file teleport.hpp.


Constructor & Destructor Documentation

pathfind::teleport_group::teleport_group ( const config cfg  ) 

Definition at line 32 of file teleport.cpp.

References cfg_, config::child_count(), and config::has_attribute().

Here is the call graph for this function:

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

Definition at line 42 of file teleport.cpp.

References cfg_, config::child_count(), id_, pathfind::manager::next_unique_id(), reversed_, and resources::tunnels.

Here is the call graph for this function:


Member Function Documentation

bool pathfind::teleport_group::always_visible (  )  const

Definition at line 88 of file teleport.cpp.

References cfg_.

Referenced by pathfind::teleport_map::teleport_map().

Here is the caller graph for this function:

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

Definition at line 84 of file teleport.cpp.

References id_.

Referenced by pathfind::teleport_map::teleport_map().

Here is the caller graph for this function:

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

Definition at line 56 of file teleport.cpp.

References cfg_, config::child_or_empty(), unit::get_location(), terrain_filter::get_locations(), unit::matches_filter(), reversed_, resources::units, map_location::x, and map_location::y.

Referenced by pathfind::teleport_map::teleport_map().

Here is the call graph for this function:

Here is the caller graph for this function:

config pathfind::teleport_group::to_config (  )  const [virtual]

Inherited from savegame_config.

Implements savegame::savegame_config.

Definition at line 92 of file teleport.cpp.

References cfg_, id_, and reversed_.


Member Data Documentation

Definition at line 79 of file teleport.hpp.

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

std::string pathfind::teleport_group::id_ [private]

Definition at line 81 of file teleport.hpp.

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

Definition at line 80 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:25:10 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs