#include <train.h>

Public Member Functions | |
| Train () | |
| Initializes the Vehicle to a train. | |
| virtual | ~Train () |
| We want to 'destruct' the right class. | |
| const char * | GetTypeString () const |
| void | MarkDirty () |
| void | UpdateDeltaXY (Direction direction) |
| ExpensesType | GetExpenseType (bool income) const |
| WindowClass | GetVehicleListWindowClass () const |
| void | PlayLeaveStationSound () const |
| bool | IsPrimaryVehicle () const |
| int | GetImage (Direction direction) const |
| int | GetDisplaySpeed () const |
| int | GetDisplayMaxSpeed () const |
| Money | GetRunningCost () const |
| bool | IsInDepot () const |
| bool | IsStoppedInDepot () const |
| void | Tick () |
| void | OnNewDay () |
You create a Vehicle using AllocateVehicle, so it is added to the pool and you reinitialize that to a Train using: v = new (v) Train();
As side-effect the vehicle type is set correctly.
Definition at line 288 of file train.h.
| virtual Train::~Train | ( | ) | [inline, virtual] |
1.5.6