(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp
This commit is contained in:
@@ -532,33 +532,6 @@ public:
|
||||
CommandCost SendToDepot(uint32 flags, DepotCommand command);
|
||||
};
|
||||
|
||||
/**
|
||||
* 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:
|
||||
* - smoke
|
||||
* - electric sparks for trains
|
||||
* - explosions
|
||||
* - bulldozer (road works)
|
||||
* - bubbles (industry)
|
||||
*/
|
||||
struct EffectVehicle : public Vehicle {
|
||||
/** Initializes the Vehicle to a special vehicle */
|
||||
EffectVehicle() { this->type = VEH_EFFECT; }
|
||||
|
||||
/** We want to 'destruct' the right class. */
|
||||
virtual ~EffectVehicle() {}
|
||||
|
||||
const char *GetTypeString() const { return "special vehicle"; }
|
||||
void UpdateDeltaXY(Direction direction);
|
||||
void Tick();
|
||||
};
|
||||
|
||||
/**
|
||||
* This class 'wraps' Vehicle; you do not actually instantiate this class.
|
||||
* You create a Vehicle using AllocateVehicle, so it is added to the pool
|
||||
|
||||
Reference in New Issue
Block a user