Ordered vector of possible destinations. More...
#include <pathfind.hpp>
Public Member Functions | |
const_iterator | find (const map_location &) const |
bool | contains (const map_location &) const |
void | insert (const map_location &) |
std::vector< map_location > | get_path (const const_iterator &) const |
Returns the path going from the source point (included) to the destination point j (excluded). More... | |
Ordered vector of possible destinations.
Definition at line 94 of file pathfind.hpp.
bool pathfind::paths::dest_vect::contains | ( | const map_location & | loc | ) | const |
Definition at line 514 of file pathfind.cpp.
References utils::find(), and loc.
Referenced by can_see(), events::mouse_handler::current_unit_attacks_from(), ai::ai_default_rca::move_leader_to_goals_phase::evaluate(), ai::ai_default_rca::move_leader_to_keep_phase::evaluate(), game_display::highlight_another_reach(), ai::readonly_context_impl::leader_can_reach_keep(), events::mouse_handler::mouse_motion(), and events::mouse_handler::touch_motion().
paths::dest_vect::const_iterator pathfind::paths::dest_vect::find | ( | const map_location & | loc | ) | const |
Definition at line 478 of file pathfind.cpp.
References i, loc, and pathfind::step_compare().
Referenced by game_display::highlight_another_reach(), and events::mouse_handler::move_action().
std::vector< map_location > pathfind::paths::dest_vect::get_path | ( | const const_iterator & | j | ) | const |
Returns the path going from the source point (included) to the destination point j (excluded).
Definition at line 497 of file pathfind.cpp.
References utils::find(), i, and game_config::path.
Referenced by game_display::highlight_another_reach().
void pathfind::paths::dest_vect::insert | ( | const map_location & | loc | ) |
Definition at line 485 of file pathfind.cpp.
References i, utf8::insert(), loc, s, and pathfind::step_compare().
Referenced by events::mouse_handler::select_hex(), and events::mouse_handler::show_attack_options().