#include <vehicle_base.h>
Public Member Functions | |
InvalidVehicle () | |
Initializes the Vehicle to a invalid vehicle. | |
virtual | ~InvalidVehicle () |
We want to 'destruct' the right class. | |
const char * | GetTypeString () const |
void | Tick () |
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 651 of file vehicle_base.h.
virtual InvalidVehicle::~InvalidVehicle | ( | ) | [inline, virtual] |