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

#include <teleport.hpp>

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, const bool check_vision)
 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 93 of file teleport.hpp.

Constructor & Destructor Documentation

◆ teleport_map() [1/2]

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,
const bool  check_vision 

◆ teleport_map() [2/2]

pathfind::teleport_map::teleport_map ( )

Definition at line 114 of file teleport.hpp.

Referenced by pathfind::get_teleport_locations().

Member Function Documentation

◆ empty()

bool pathfind::teleport_map::empty ( ) const

Definition at line 134 of file teleport.hpp.

Referenced by pathfind::a_star_search().

◆ get_adjacents()

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

Definition at line 229 of file teleport.cpp.

References targets_, and teleport_map_.

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

◆ get_sources()

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

Definition at line 243 of file teleport.cpp.

References sources_.

◆ get_targets()

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

Definition at line 251 of file teleport.cpp.

References targets_.

Member Data Documentation

◆ sources_

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

Definition at line 140 of file teleport.hpp.

Referenced by get_sources(), and teleport_map().

◆ targets_

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

Definition at line 141 of file teleport.hpp.

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

◆ teleport_map_

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

Definition at line 139 of file teleport.hpp.

Referenced by get_adjacents(), and teleport_map().

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