|
OpenTTD Source
14.0-beta3
|
Class for storing amounts of cargo. More...
#include <cargo_type.h>
Public Member Functions | |
| template<typename T > | |
| const T | GetSum () const |
| Get the sum of all cargo amounts. More... | |
| uint | GetCount () const |
| Get the amount of cargos that have an amount. More... | |
Class for storing amounts of cargo.
Definition at line 110 of file cargo_type.h.
|
inline |
Get the amount of cargos that have an amount.
Definition at line 125 of file cargo_type.h.
Referenced by GetTrainDetailsWndVScroll().
|
inline |
Get the sum of all cargo amounts.
Definition at line 116 of file cargo_type.h.
Referenced by GetTotalCapacityOfArticulatedParts().