The information about a vehicle list. More...
#include <vehiclelist.h>
Public Member Functions | |
| uint32 | Pack () |
| Pack a VehicleListIdentifier in a single uint32. | |
| bool | Unpack (uint32 data) |
| Unpack a VehicleListIdentifier from a single uint32. | |
| VehicleListIdentifier (VehicleListType type, VehicleType vtype, CompanyID company, uint index=0) | |
| Create a simple vehicle list. | |
| VehicleListIdentifier (uint32 data) | |
| Decode a packed vehicle list identifier into a new one. | |
| VehicleListIdentifier () | |
| Simple empty constructor. | |
Data Fields | |
| VehicleListType | type |
| The type of vehicle list. | |
| VehicleType | vtype |
| The vehicle type associated with this list. | |
| CompanyID | company |
| The company associated with this list. | |
| uint32 | index |
| A vehicle list type specific index. | |
The information about a vehicle list.
Definition at line 31 of file vehiclelist.h.
| VehicleListIdentifier::VehicleListIdentifier | ( | VehicleListType | type, | |
| VehicleType | vtype, | |||
| CompanyID | company, | |||
| uint | index = 0 | |||
| ) | [inline] |
Create a simple vehicle list.
| type | List type. | |
| vtype | Vehicle type associated with this list. | |
| company | Company associated with this list. | |
| index | Optional type specific index. |
Definition at line 47 of file vehiclelist.h.
| VehicleListIdentifier::VehicleListIdentifier | ( | uint32 | data | ) |
Decode a packed vehicle list identifier into a new one.
| data | The data to unpack. |
Definition at line 51 of file vehiclelist.cpp.
References Unpack().
| VehicleListIdentifier::VehicleListIdentifier | ( | ) | [inline] |
Simple empty constructor.
In this case you must set everything!
Definition at line 53 of file vehiclelist.h.
| uint32 VehicleListIdentifier::Pack | ( | ) |
Pack a VehicleListIdentifier in a single uint32.
Definition at line 20 of file vehiclelist.cpp.
References company, index, OWNER_NONE, type, and vtype.
Referenced by VehicleGroupWindow::OnClick(), DepotWindow::OnClick(), VehicleGroupWindow::OnDropdownSelect(), VehicleListWindow::OnInvalidateData(), and Vehicle::RemoveFromShared().
| bool VehicleListIdentifier::Unpack | ( | uint32 | data | ) |
Unpack a VehicleListIdentifier from a single uint32.
| data | The data to unpack. |
Definition at line 36 of file vehiclelist.cpp.
References company, GB(), index, OWNER_NONE, type, and vtype.
Referenced by CmdMassStartStopVehicle(), CmdSendVehicleToDepot(), and VehicleListIdentifier().
1.7.1