#include <effectvehicle_base.h>
Public Member Functions | |
EffectVehicle () | |
Initializes the Vehicle to a special vehicle. | |
virtual | ~EffectVehicle () |
We want to 'destruct' the right class. | |
const char * | GetTypeString () const |
void | UpdateDeltaXY (Direction direction) |
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.
A special vehicle is one of the following:
Definition at line 25 of file effectvehicle_base.h.
virtual EffectVehicle::~EffectVehicle | ( | ) | [inline, virtual] |