#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) | |
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_ |
Definition at line 84 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 | ||
) |
Definition at line 157 of file teleport.cpp.
References team::fogged(), team::is_enemy(), unit::side(), sources_, targets_, and teleport_map_.
|
inline |
Definition at line 103 of file teleport.hpp.
|
inline |
Definition at line 123 of file teleport.hpp.
References sources_.
Referenced by pathfind::a_star_search().
void pathfind::teleport_map::get_adjacents | ( | std::set< map_location > & | adjacents, |
map_location | loc | ||
) | const |
Definition at line 202 of file teleport.cpp.
References targets_, and teleport_map_.
Referenced by pathfind::a_star_search(), and pathfind::find_routes().
void pathfind::teleport_map::get_sources | ( | std::set< map_location > & | sources | ) | const |
Definition at line 216 of file teleport.cpp.
References sources_.
void pathfind::teleport_map::get_targets | ( | std::set< map_location > & | targets | ) | const |
Definition at line 224 of file teleport.cpp.
References targets_.
|
private |
Definition at line 129 of file teleport.hpp.
Referenced by empty(), get_sources(), and teleport_map().
|
private |
Definition at line 130 of file teleport.hpp.
Referenced by get_adjacents(), get_targets(), and teleport_map().
|
private |
Definition at line 128 of file teleport.hpp.
Referenced by get_adjacents(), and teleport_map().