mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r22503) -Doc: EffectVehicleType.
This commit is contained in:
parent
986d5e950d
commit
1b34d22620
@ -531,30 +531,32 @@ static bool BubbleTick(EffectVehicle *v)
|
|||||||
typedef void EffectInitProc(EffectVehicle *v);
|
typedef void EffectInitProc(EffectVehicle *v);
|
||||||
typedef bool EffectTickProc(EffectVehicle *v);
|
typedef bool EffectTickProc(EffectVehicle *v);
|
||||||
|
|
||||||
|
/** Functions to initialise an effect vehicle after construction. */
|
||||||
static EffectInitProc * const _effect_init_procs[] = {
|
static EffectInitProc * const _effect_init_procs[] = {
|
||||||
ChimneySmokeInit,
|
ChimneySmokeInit, // EV_CHIMNEY_SMOKE
|
||||||
SteamSmokeInit,
|
SteamSmokeInit, // EV_STEAM_SMOKE
|
||||||
DieselSmokeInit,
|
DieselSmokeInit, // EV_DIESEL_SMOKE
|
||||||
ElectricSparkInit,
|
ElectricSparkInit, // EV_ELECTRIC_SPARK
|
||||||
SmokeInit,
|
SmokeInit, // EV_SMOKE
|
||||||
ExplosionLargeInit,
|
ExplosionLargeInit, // EV_EXPLOSION_LARGE
|
||||||
BreakdownSmokeInit,
|
BreakdownSmokeInit, // EV_BREAKDOWN_SMOKE
|
||||||
ExplosionSmallInit,
|
ExplosionSmallInit, // EV_EXPLOSION_SMALL
|
||||||
BulldozerInit,
|
BulldozerInit, // EV_BULLDOZER
|
||||||
BubbleInit,
|
BubbleInit, // EV_BUBBLE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** Functions for controling effect vehicles at each tick. */
|
||||||
static EffectTickProc * const _effect_tick_procs[] = {
|
static EffectTickProc * const _effect_tick_procs[] = {
|
||||||
ChimneySmokeTick,
|
ChimneySmokeTick, // EV_CHIMNEY_SMOKE
|
||||||
SteamSmokeTick,
|
SteamSmokeTick, // EV_STEAM_SMOKE
|
||||||
DieselSmokeTick,
|
DieselSmokeTick, // EV_DIESEL_SMOKE
|
||||||
ElectricSparkTick,
|
ElectricSparkTick, // EV_ELECTRIC_SPARK
|
||||||
SmokeTick,
|
SmokeTick, // EV_SMOKE
|
||||||
ExplosionLargeTick,
|
ExplosionLargeTick, // EV_EXPLOSION_LARGE
|
||||||
BreakdownSmokeTick,
|
BreakdownSmokeTick, // EV_BREAKDOWN_SMOKE
|
||||||
ExplosionSmallTick,
|
ExplosionSmallTick, // EV_EXPLOSION_SMALL
|
||||||
BulldozerTick,
|
BulldozerTick, // EV_BULLDOZER
|
||||||
BubbleTick,
|
BubbleTick, // EV_BUBBLE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,16 +16,16 @@
|
|||||||
|
|
||||||
/** Effect vehicle types */
|
/** Effect vehicle types */
|
||||||
enum EffectVehicleType {
|
enum EffectVehicleType {
|
||||||
EV_CHIMNEY_SMOKE = 0,
|
EV_CHIMNEY_SMOKE = 0, ///< Smoke of power plant (industry).
|
||||||
EV_STEAM_SMOKE = 1,
|
EV_STEAM_SMOKE = 1, ///< Smoke of steam engines.
|
||||||
EV_DIESEL_SMOKE = 2,
|
EV_DIESEL_SMOKE = 2, ///< Smoke of diesel engines.
|
||||||
EV_ELECTRIC_SPARK = 3,
|
EV_ELECTRIC_SPARK = 3, ///< Sparcs of electric engines.
|
||||||
EV_SMOKE = 4,
|
EV_SMOKE = 4, ///< Smoke of broken aircraft, copper mine and disasters.
|
||||||
EV_EXPLOSION_LARGE = 5,
|
EV_EXPLOSION_LARGE = 5, ///< Various explosions.
|
||||||
EV_BREAKDOWN_SMOKE = 6,
|
EV_BREAKDOWN_SMOKE = 6, ///< Smoke of broken vehicles except aircraft.
|
||||||
EV_EXPLOSION_SMALL = 7,
|
EV_EXPLOSION_SMALL = 7, ///< Various explosions.
|
||||||
EV_BULLDOZER = 8,
|
EV_BULLDOZER = 8, ///< Bulldozer at roadworks.
|
||||||
EV_BUBBLE = 9
|
EV_BUBBLE = 9, ///< Bubble of bubble generator (industry).
|
||||||
};
|
};
|
||||||
|
|
||||||
EffectVehicle *CreateEffectVehicle(int x, int y, int z, EffectVehicleType type);
|
EffectVehicle *CreateEffectVehicle(int x, int y, int z, EffectVehicleType type);
|
||||||
|
Loading…
Reference in New Issue
Block a user