OpenTTD Source
20240919-master-gdf0233f4c2
|
#include "vehicle_type.h"
Go to the source code of this file.
Enumerations | |
enum | EffectVehicleType { EV_CHIMNEY_SMOKE = 0, EV_STEAM_SMOKE = 1, EV_DIESEL_SMOKE = 2, EV_ELECTRIC_SPARK = 3, EV_CRASH_SMOKE = 4, EV_EXPLOSION_LARGE = 5, EV_BREAKDOWN_SMOKE = 6, EV_EXPLOSION_SMALL = 7, EV_BULLDOZER = 8, EV_BUBBLE = 9, EV_BREAKDOWN_SMOKE_AIRCRAFT = 10, EV_COPPER_MINE_SMOKE = 11, EV_END } |
Effect vehicle types. More... | |
Functions | |
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... | |
Functions related to effect vehicles.
Definition in file effectvehicle_func.h.
enum EffectVehicleType |
Effect vehicle types.
Definition at line 16 of file effectvehicle_func.h.
EffectVehicle* CreateEffectVehicle | ( | int | x, |
int | y, | ||
int | z, | ||
EffectVehicleType | type | ||
) |
Create an effect vehicle at a particular location.
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. |
Definition at line 566 of file effectvehicle.cpp.
EffectVehicle* CreateEffectVehicleAbove | ( | int | x, |
int | y, | ||
int | z, | ||
EffectVehicleType | type | ||
) |
Create an effect vehicle above a particular location.
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. |
Definition at line 594 of file effectvehicle.cpp.
Referenced by CmdClearArea().
EffectVehicle* CreateEffectVehicleRel | ( | const Vehicle * | v, |
int | x, | ||
int | y, | ||
int | z, | ||
EffectVehicleType | type | ||
) |
Create an effect vehicle above a particular vehicle.
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. |
Definition at line 610 of file effectvehicle.cpp.
Referenced by CrashAirplane(), HandleCrashedTrain(), and RoadVehIsCrashed().