Public Member Functions | Private Attributes

pathfind::teleport_map Class Reference

#include <teleport.hpp>

Collaboration diagram for pathfind::teleport_map:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 teleport_map (const std::vector< teleport_group > &teleport_groups, const unit &u, const team &viewing_team, const bool see_all, const bool ignore_units)
 teleport_map ()
void get_adjacents (std::set< map_location > &adjacents, map_location loc) const
void get_sources (std::set< map_location > &sources) const
void get_targets (std::set< map_location > &targets) const
bool empty () const

Private Attributes

std::map< map_location,
std::set< std::string > > 
teleport_map_
std::map< std::string,
std::set< map_location > > 
sources_
std::map< std::string,
std::set< map_location > > 
targets_

Detailed Description

Definition at line 85 of file teleport.hpp.


Constructor & Destructor Documentation

pathfind::teleport_map::teleport_map ( const std::vector< teleport_group > &  teleport_groups,
const unit u,
const team viewing_team,
const bool  see_all,
const bool  ignore_units 
)
pathfind::teleport_map::teleport_map (  )  [inline]

Definition at line 104 of file teleport.hpp.


Member Function Documentation

bool pathfind::teleport_map::empty (  )  const [inline]

Definition at line 124 of file teleport.hpp.

References sources_.

Referenced by pathfind::a_star_search().

Here is the caller graph for this function:

void pathfind::teleport_map::get_adjacents ( std::set< map_location > &  adjacents,
map_location  loc 
) const

Definition at line 143 of file teleport.cpp.

References targets_, and teleport_map_.

Referenced by pathfind::a_star_search(), and find_routes().

Here is the caller graph for this function:

void pathfind::teleport_map::get_sources ( std::set< map_location > &  sources  )  const

Definition at line 157 of file teleport.cpp.

References sources_.

void pathfind::teleport_map::get_targets ( std::set< map_location > &  targets  )  const

Definition at line 165 of file teleport.cpp.

References targets_.


Member Data Documentation

std::map<std::string, std::set<map_location> > pathfind::teleport_map::sources_ [private]

Definition at line 130 of file teleport.hpp.

Referenced by empty(), get_sources(), and teleport_map().

std::map<std::string, std::set<map_location> > pathfind::teleport_map::targets_ [private]

Definition at line 131 of file teleport.hpp.

Referenced by get_adjacents(), get_targets(), and teleport_map().

std::map<map_location, std::set<std::string> > pathfind::teleport_map::teleport_map_ [private]

Definition at line 129 of file teleport.hpp.

Referenced by get_adjacents(), and teleport_map().


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