List of cargo for either one next hop or one destination. More...
Public Types | |
enum | Type { FINAL_DEST, NEXT_HOP, TRANSFER_HOP } |
Enum for type of stored data. More... | |
typedef std::list< CargoDestEntry > | List |
Public Member Functions | |
CargoDestEntry (Type type, StationID station, uint count, SourceType st=ST_INDUSTRY) | |
void | Zero () |
Zero out this entry and all child entries. | |
void | RemoveEmpty () |
Remove all empty child entries. | |
int | UpdateRowCount (int row) |
Update header row number. | |
Data Fields | |
List | children |
Child entries of this entry. | |
CargoData | data |
Stores the info for the current item. | |
Type | type |
Type of the data stored in entry. | |
uint16 | start_row |
Row number of the header line. | |
bool | expanded |
Is this entry expanded? |
List of cargo for either one next hop or one destination.
Definition at line 891 of file station_gui.cpp.
enum CargoDestEntry::Type |
Enum for type of stored data.
FINAL_DEST |
Data is the final destination. |
NEXT_HOP |
Data is the next hop. |
TRANSFER_HOP |
Data is the transfer station. |
Definition at line 895 of file station_gui.cpp.
void CargoDestEntry::RemoveEmpty | ( | ) | [inline] |
Remove all empty child entries.
Definition at line 925 of file station_gui.cpp.
References children.
int CargoDestEntry::UpdateRowCount | ( | int | row | ) | [inline] |
Update header row number.
Definition at line 938 of file station_gui.cpp.
void CargoDestEntry::Zero | ( | ) | [inline] |
Zero out this entry and all child entries.
Definition at line 915 of file station_gui.cpp.