Implementation of everything generic to vehicles.
More...
Go to the source code of this file.
|
#define | MK(x, y, z, i) { x, y, z, i } |
|
#define | ME(i) { i, 4, 0, 0 } |
|
|
static bool | IncrementSprite (EffectVehicle *v, SpriteID last) |
| Increment the sprite unless it has reached the end of the animation. More...
|
|
static void | ChimneySmokeInit (EffectVehicle *v) |
|
static bool | ChimneySmokeTick (EffectVehicle *v) |
|
static void | SteamSmokeInit (EffectVehicle *v) |
|
static bool | SteamSmokeTick (EffectVehicle *v) |
|
static void | DieselSmokeInit (EffectVehicle *v) |
|
static bool | DieselSmokeTick (EffectVehicle *v) |
|
static void | ElectricSparkInit (EffectVehicle *v) |
|
static bool | ElectricSparkTick (EffectVehicle *v) |
|
static void | SmokeInit (EffectVehicle *v) |
|
static bool | SmokeTick (EffectVehicle *v) |
|
static void | ExplosionLargeInit (EffectVehicle *v) |
|
static bool | ExplosionLargeTick (EffectVehicle *v) |
|
static void | BreakdownSmokeInit (EffectVehicle *v) |
|
static bool | BreakdownSmokeTick (EffectVehicle *v) |
|
static void | ExplosionSmallInit (EffectVehicle *v) |
|
static bool | ExplosionSmallTick (EffectVehicle *v) |
|
static void | BulldozerInit (EffectVehicle *v) |
|
static bool | BulldozerTick (EffectVehicle *v) |
|
static void | BubbleInit (EffectVehicle *v) |
|
static bool | BubbleTick (EffectVehicle *v) |
|
EffectVehicle * | CreateEffectVehicle (int x, int y, int z, EffectVehicleType type) |
| Create an effect vehicle at a particular location. More...
|
|
EffectVehicle * | CreateEffectVehicleAbove (int x, int y, int z, EffectVehicleType type) |
| Create an effect vehicle above a particular location. More...
|
|
EffectVehicle * | CreateEffectVehicleRel (const Vehicle *v, int x, int y, int z, EffectVehicleType type) |
| Create an effect vehicle above a particular vehicle. More...
|
|
Implementation of everything generic to vehicles.
Definition in file effectvehicle.cpp.
◆ CreateEffectVehicle()
Create an effect vehicle at a particular location.
- Parameters
-
x | The x location on the map. |
y | The y location on the map. |
z | The z location on the map. |
type | The type of effect vehicle. |
- Returns
- The effect vehicle.
Definition at line 566 of file effectvehicle.cpp.
◆ CreateEffectVehicleAbove()
Create an effect vehicle above a particular location.
- Parameters
-
x | The x location on the map. |
y | The y location on the map. |
z | The offset from the ground. |
type | The type of effect vehicle. |
- Returns
- The effect vehicle.
Definition at line 594 of file effectvehicle.cpp.
Referenced by CmdClearArea().
◆ CreateEffectVehicleRel()
Create an effect vehicle above a particular vehicle.
- Parameters
-
v | The vehicle to base the position on. |
x | The x offset to the vehicle. |
y | The y offset to the vehicle. |
z | The z offset to the vehicle. |
type | The type of effect vehicle. |
- Returns
- The effect vehicle.
Definition at line 610 of file effectvehicle.cpp.
Referenced by CrashAirplane(), HandleCrashedTrain(), and RoadVehIsCrashed().
◆ IncrementSprite()
◆ _bubble_burst
Initial value:= {
MK(0, 0, 1, 2),
MK(0, 0, 1, 7),
MK(0, 0, 1, 8),
MK(0, 0, 1, 9),
}
Definition at line 362 of file effectvehicle.cpp.
◆ _bubble_float_ne
Initial value:= {
MK( 0, 0, 1, 0),
MK(-1, 0, 1, 1),
MK( 0, 0, 1, 0),
MK(-1, 0, 1, 2),
}
Definition at line 338 of file effectvehicle.cpp.
◆ _bubble_float_nw
Initial value:= {
MK(0, 0, 1, 0),
MK(0, -1, 1, 1),
MK(0, 0, 1, 0),
MK(0, -1, 1, 2),
}
Definition at line 354 of file effectvehicle.cpp.
◆ _bubble_float_se
Initial value:= {
MK(0, 0, 1, 0),
MK(0, 1, 1, 1),
MK(0, 0, 1, 0),
MK(0, 1, 1, 2),
}
Definition at line 346 of file effectvehicle.cpp.
◆ _bubble_float_sw
Initial value:= {
MK(0, 0, 1, 0),
MK(1, 0, 1, 1),
MK(0, 0, 1, 0),
MK(1, 0, 1, 2),
}
Definition at line 329 of file effectvehicle.cpp.
◆ _bubble_movement
Initial value:= {
_bubble_float_sw,
_bubble_float_ne,
_bubble_float_se,
_bubble_float_nw,
_bubble_burst,
_bubble_absorb,
}
Definition at line 460 of file effectvehicle.cpp.
◆ _bulldozer_movement
Initial value:= {
{ 0, 0, 4 },
{ 3, 3, 4 },
{ 2, 2, 7 },
{ 0, 2, 7 },
{ 1, 1, 3 },
{ 2, 2, 7 },
{ 0, 2, 7 },
{ 1, 1, 3 },
{ 2, 2, 7 },
{ 0, 2, 7 },
{ 3, 3, 6 },
{ 2, 2, 6 },
{ 1, 1, 7 },
{ 3, 1, 7 },
{ 0, 0, 3 },
{ 1, 1, 7 },
{ 3, 1, 7 },
{ 0, 0, 3 },
{ 1, 1, 7 },
{ 3, 1, 7 }
}
Definition at line 253 of file effectvehicle.cpp.
◆ _effect_procs
Initial value:= {{
{ ElectricSparkInit, ElectricSparkTick,
TO_INVALID },
{ ExplosionLargeInit, ExplosionLargeTick,
TO_INVALID },
{ BreakdownSmokeInit, BreakdownSmokeTick,
TO_INVALID },
{ ExplosionSmallInit, ExplosionSmallTick,
TO_INVALID },
}}
@ TO_INVALID
Invalid transparency option.
@ TO_INDUSTRIES
industries
Per-EffectVehicleType handling.
Definition at line 543 of file effectvehicle.cpp.
Referenced by EffectVehicle::GetTransparencyOption(), and EffectVehicle::Tick().
const { ... } _inc_by_dir[] |
Initial value:= {
{ -1, 0 },
{ 0, 1 },
{ 1, 0 },
{ 0, -1 }
}