![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
A path is a succession of moves and actions to go from one location to another. More...
#include <path.h>
Collaboration diagram for freeciv::path:Classes | |
| struct | step |
Public Member Functions | |
| path () | |
| Constructor. More... | |
| path (const std::vector< step > &steps) | |
| Constructor. More... | |
| int | turns () const |
| Finds how many turns (rounded down) it takes to reach the end of the path. More... | |
| bool | empty () const |
| Returns true if the path is empty, usually meaning that a path to the destination was not found. More... | |
| const std::vector< step > & | steps () const |
| Returns the steps making up this path. More... | |
| std::vector< step >::const_iterator | first_unsafe_step (unit *unit) const |
| Finds the first step in the path that is unsafe (if any). More... | |
Private Attributes | |
| std::vector< step > | m_steps |
A path is a succession of moves and actions to go from one location to another.
|
inlineexplicit |
|
inline |
| std::vector< path::step >::const_iterator freeciv::path::first_unsafe_step | ( | unit * | unit | ) | const |
|
inline |
|
inline |