Freeciv21
Develop your civilization from humble roots to a global empire
freeciv::path::step Struct Reference

#include <path.h>

+ Inheritance diagram for freeciv::path::step:
+ Collaboration diagram for freeciv::path::step:

Public Attributes

tilelocation
 Where we are. More...
 
unitloaded
 The unit we are loaded in. More...
 
bool moved
 Whether we moved this turn (for HP recovery) More...
 
bool paradropped
 Whether we paradropped this turn. More...
 
bool is_final
 Whether this vertex can have children. More...
 
int waypoints
 How many waypoints we have visited so far. More...
 
int turns
 How many turns it takes to get there. More...
 
int moves_left
 How many move fragments the unit has left. More...
 
int health
 How many HP the unit has left. More...
 
int fuel_left
 How much fuel the unit has left. More...
 
unit_order order
 The order to come here. More...
 

Detailed Description

Definition at line 20 of file path.h.

Member Data Documentation

◆ fuel_left

int freeciv::path::step::fuel_left

◆ health

int freeciv::path::step::health

◆ is_final

bool freeciv::path::step::is_final

Whether this vertex can have children.

Definition at line 26 of file path.h.

Referenced by freeciv::detail::vertex::comparable(), freeciv::detail::vertex::operator==(), and freeciv::refuel_destination::reached().

◆ loaded

◆ location

◆ moved

bool freeciv::path::step::moved

◆ moves_left

◆ order

◆ paradropped

bool freeciv::path::step::paradropped

◆ turns

int freeciv::path::step::turns

How many turns it takes to get there.

Definition at line 30 of file path.h.

Referenced by freeciv::detail::vertex::comparable(), freeciv::detail::vertex::operator==(), and freeciv::detail::vertex::operator>().

◆ waypoints

int freeciv::path::step::waypoints

How many waypoints we have visited so far.

Definition at line 27 of file path.h.

Referenced by freeciv::detail::vertex::comparable(), freeciv::path_finder::path_finder_private::is_reached(), and freeciv::detail::vertex::operator==().