The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pathfind::paths::dest_vect Struct Reference

Ordered vector of possible destinations. More...

#include <pathfind.hpp>

Inheritance diagram for pathfind::paths::dest_vect:

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).
 

Detailed Description

Ordered vector of possible destinations.

Definition at line 94 of file pathfind.hpp.

Member Function Documentation

◆ contains()

bool pathfind::paths::dest_vect::contains ( const map_location &  loc) const

◆ find()

paths::dest_vect::const_iterator pathfind::paths::dest_vect::find ( const map_location &  loc) const

◆ get_path()

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 i.

Referenced by game_display::highlight_another_reach().

◆ insert()

void pathfind::paths::dest_vect::insert ( const map_location &  loc)

Definition at line 485 of file pathfind.cpp.

References i, loc, s, and pathfind::step_compare().

Referenced by events::mouse_handler::select_hex().


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