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 93 of file pathfind.hpp.
bool pathfind::paths::dest_vect::contains | ( | const map_location & | loc | ) | const |
Definition at line 510 of file pathfind.cpp.
References gui2::event::find().
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(), ai::readonly_context_impl::leader_can_reach_keep(), and events::mouse_handler::mouse_motion().
paths::dest_vect::const_iterator pathfind::paths::dest_vect::find | ( | const map_location & | loc | ) | const |
Definition at line 474 of file pathfind.cpp.
References i, and pathfind::lower_bound().
Referenced by events::mouse_handler::move_action(), and events::mouse_handler::select_hex().
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 493 of file pathfind.cpp.
References gui2::event::find(), and i.
void pathfind::paths::dest_vect::insert | ( | const map_location & | loc | ) |
Definition at line 481 of file pathfind.cpp.
References i, utf8::insert(), and pathfind::lower_bound().
Referenced by events::mouse_handler::select_hex(), and events::mouse_handler::show_attack_options().