|
ProtoBot
|
Class representing a path and its information (vector of positions, total distance, etc.). More...
#include <A-StarPathfinding.h>
Public Member Functions | |
| Path (vector< BWAPI::Position > positions, int distance) | |
| void | flip () |
| Reverses the vector of positions in the path. Used when we want to flip a path from A to B into a path from B to A. | |
| bool | operator== (const Path &other) const |
| Path | operator+ (const Path &other) |
Public Attributes | |
| vector< BWAPI::Position > | positions = vector<BWAPI::Position>() |
| A vector of BWAPI::Positions representing the waypoints along the path to follow ///<. | |
| int | distance = 0 |
| The total distance of the path, calculated as the sum of the distances between each waypoint ///<. | |
Class representing a path and its information (vector of positions, total distance, etc.).
Definition at line 66 of file A-StarPathfinding.h.
|
inline |
Definition at line 71 of file A-StarPathfinding.h.
|
inlinenoexcept |
Definition at line 76 of file A-StarPathfinding.h.
|
inline |
Reverses the vector of positions in the path. Used when we want to flip a path from A to B into a path from B to A.
Definition at line 84 of file A-StarPathfinding.h.
Definition at line 94 of file A-StarPathfinding.h.
|
inline |
Definition at line 90 of file A-StarPathfinding.h.
| int Path::distance = 0 |
The total distance of the path, calculated as the sum of the distances between each waypoint ///<.
Definition at line 69 of file A-StarPathfinding.h.
| vector<BWAPI::Position> Path::positions = vector<BWAPI::Position>() |
A vector of BWAPI::Positions representing the waypoints along the path to follow ///<.
Definition at line 68 of file A-StarPathfinding.h.