#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 () | |
std::set< map_location > | get_adjacents (map_location loc) const |
std::set< map_location > | get_sources () const |
Returns the locations that are an entrance of the tunnel. More... | |
std::set< map_location > | get_targets () const |
Returns the locations that are an exit of the tunnel. More... | |
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_ |
Definition at line 95 of file teleport.hpp.
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 | ||
) |
Definition at line 166 of file teleport.cpp.
References unit_map::find(), game_board::find_visible_unit(), team::fogged(), resources::gameboard, team::is_enemy(), unit::side(), sources_, targets_, teleport_map_, and game_board::units().
|
inline |
Definition at line 116 of file teleport.hpp.
|
inline |
Definition at line 134 of file teleport.hpp.
References sources_.
Referenced by pathfind::a_star_search().
std::set< map_location > pathfind::teleport_map::get_adjacents | ( | map_location | loc | ) | const |
loc | the map location for which we want to know the adjacent hexes |
Definition at line 234 of file teleport.cpp.
References targets_, and teleport_map_.
Referenced by pathfind::a_star_search(), and pathfind::find_routes().
std::set< map_location > pathfind::teleport_map::get_sources | ( | ) | const |
Returns the locations that are an entrance of the tunnel.
Definition at line 250 of file teleport.cpp.
References sources_.
std::set< map_location > pathfind::teleport_map::get_targets | ( | ) | const |
Returns the locations that are an exit of the tunnel.
Definition at line 260 of file teleport.cpp.
References targets_.
|
private |
Definition at line 140 of file teleport.hpp.
Referenced by empty(), get_sources(), and teleport_map().
|
private |
Definition at line 141 of file teleport.hpp.
Referenced by get_adjacents(), get_targets(), and teleport_map().
|
private |
Definition at line 139 of file teleport.hpp.
Referenced by get_adjacents(), and teleport_map().