SpecialVehicle Struct Reference

This class 'wraps' Vehicle; you do not actually instantiate this class. More...

#include <vehicle_base.h>

Inheritance diagram for SpecialVehicle:

PoolItem< T, Tid, Tpool >

Public Member Functions

 SpecialVehicle ()
 Initializes the Vehicle to a special vehicle.
virtual ~SpecialVehicle ()
 We want to 'destruct' the right class.
const char * GetTypeString () const
void UpdateDeltaXY (Direction direction)
void Tick ()

Detailed Description

This class 'wraps' Vehicle; you do not actually instantiate this class.

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 521 of file vehicle_base.h.


Constructor & Destructor Documentation

virtual SpecialVehicle::~SpecialVehicle (  )  [inline, virtual]

We want to 'destruct' the right class.

Definition at line 526 of file vehicle_base.h.


The documentation for this struct was generated from the following files:

Generated on Wed Oct 1 17:03:39 2008 for openttd by  doxygen 1.5.6