OpenTTD Source 20241224-master-gee860a5c8e
|
Monthly statistics for a link between two stations. More...
#include <linkgraph_gui.h>
Public Member Functions | |
uint | Usage () const |
Return the usage of the link to display. | |
Data Fields | |
CargoID | cargo |
Cargo type of the link. | |
uint | capacity |
Capacity of the link. | |
uint | usage |
Actual usage of the link. | |
uint | planned |
Planned usage of the link. | |
uint32_t | time |
Travel time of the link. | |
bool | shared |
If this is a shared link to be drawn dashed. | |
Monthly statistics for a link between two stations.
Only the cargo type of the most saturated linkgraph is taken into account.
Definition at line 23 of file linkgraph_gui.h.
|
inline |
Definition at line 24 of file linkgraph_gui.h.
|
inline |
Return the usage of the link to display.
Definition at line 27 of file linkgraph_gui.h.
References planned, and usage.
Referenced by LinkGraphOverlay::AddStats(), and LinkGraphOverlay::DrawContent().
uint LinkProperties::capacity |
Capacity of the link.
Definition at line 30 of file linkgraph_gui.h.
Referenced by LinkGraphOverlay::AddStats(), and LinkGraphOverlay::DrawContent().
CargoID LinkProperties::cargo |
Cargo type of the link.
Definition at line 29 of file linkgraph_gui.h.
Referenced by LinkGraphOverlay::AddStats().
uint LinkProperties::planned |
Planned usage of the link.
Definition at line 32 of file linkgraph_gui.h.
Referenced by LinkGraphOverlay::AddStats(), and Usage().
bool LinkProperties::shared |
If this is a shared link to be drawn dashed.
Definition at line 34 of file linkgraph_gui.h.
Referenced by LinkGraphOverlay::AddStats(), and LinkGraphOverlay::DrawContent().
uint32_t LinkProperties::time |
Travel time of the link.
Definition at line 33 of file linkgraph_gui.h.
Referenced by LinkGraphOverlay::AddStats().
uint LinkProperties::usage |
Actual usage of the link.
Definition at line 31 of file linkgraph_gui.h.
Referenced by LinkGraphOverlay::AddStats(), and Usage().