summaryrefslogtreecommitdiff
path: root/src/effectvehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-28 09:43:22 +0000
committerfrosch <frosch@openttd.org>2011-05-28 09:43:22 +0000
commit1b34d226202e3f75b8d7744f25a76935891e8a1c (patch)
tree37ecda4b50a46cb190c8049211acbb2443c754ac /src/effectvehicle.cpp
parent986d5e950d074d86f5d6098c64946a7b9d2f60b7 (diff)
downloadopenttd-1b34d226202e3f75b8d7744f25a76935891e8a1c.tar.xz
(svn r22503) -Doc: EffectVehicleType.
Diffstat (limited to 'src/effectvehicle.cpp')
-rw-r--r--src/effectvehicle.cpp42
1 files changed, 22 insertions, 20 deletions
diff --git a/src/effectvehicle.cpp b/src/effectvehicle.cpp
index cfd470d46..e50480f3b 100644
--- a/src/effectvehicle.cpp
+++ b/src/effectvehicle.cpp
@@ -531,30 +531,32 @@ static bool BubbleTick(EffectVehicle *v)
typedef void EffectInitProc(EffectVehicle *v);
typedef bool EffectTickProc(EffectVehicle *v);
+/** Functions to initialise an effect vehicle after construction. */
static EffectInitProc * const _effect_init_procs[] = {
- ChimneySmokeInit,
- SteamSmokeInit,
- DieselSmokeInit,
- ElectricSparkInit,
- SmokeInit,
- ExplosionLargeInit,
- BreakdownSmokeInit,
- ExplosionSmallInit,
- BulldozerInit,
- BubbleInit,
+ ChimneySmokeInit, // EV_CHIMNEY_SMOKE
+ SteamSmokeInit, // EV_STEAM_SMOKE
+ DieselSmokeInit, // EV_DIESEL_SMOKE
+ ElectricSparkInit, // EV_ELECTRIC_SPARK
+ SmokeInit, // EV_SMOKE
+ ExplosionLargeInit, // EV_EXPLOSION_LARGE
+ BreakdownSmokeInit, // EV_BREAKDOWN_SMOKE
+ ExplosionSmallInit, // EV_EXPLOSION_SMALL
+ BulldozerInit, // EV_BULLDOZER
+ BubbleInit, // EV_BUBBLE
};
+/** Functions for controling effect vehicles at each tick. */
static EffectTickProc * const _effect_tick_procs[] = {
- ChimneySmokeTick,
- SteamSmokeTick,
- DieselSmokeTick,
- ElectricSparkTick,
- SmokeTick,
- ExplosionLargeTick,
- BreakdownSmokeTick,
- ExplosionSmallTick,
- BulldozerTick,
- BubbleTick,
+ ChimneySmokeTick, // EV_CHIMNEY_SMOKE
+ SteamSmokeTick, // EV_STEAM_SMOKE
+ DieselSmokeTick, // EV_DIESEL_SMOKE
+ ElectricSparkTick, // EV_ELECTRIC_SPARK
+ SmokeTick, // EV_SMOKE
+ ExplosionLargeTick, // EV_EXPLOSION_LARGE
+ BreakdownSmokeTick, // EV_BREAKDOWN_SMOKE
+ ExplosionSmallTick, // EV_EXPLOSION_SMALL
+ BulldozerTick, // EV_BULLDOZER
+ BubbleTick, // EV_BUBBLE
};