The Battle for Wesnoth  1.15.2+dev
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:
Inheritance graph

Public Member Functions

const_iterator find (const map_location &) const
 
bool contains (const map_location &) const
 
void insert (const map_location &)
 
std::vector< map_locationget_path (const const_iterator &) const
 Returns the path going from the source point (included) to the destination point j (excluded). More...
 

Detailed Description

Ordered vector of possible destinations.

Definition at line 92 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 503 of file pathfind.cpp.

References gui2::event::find(), i, game_config::path, and reverse().

Referenced by game_display::highlight_another_reach().

◆ insert()

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

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