OpenTTD Source: src/effectvehicle_func.h Source File

OpenTTD Source 15.3

effectvehicle_func.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef EFFECTVEHICLE_FUNC_H
11#define EFFECTVEHICLE_FUNC_H
12
13#include "vehicle_type.h"
14
16 enum EffectVehicleType : uint8_t {
17 EV_CHIMNEY_SMOKE = 0,
18 EV_STEAM_SMOKE = 1,
19 EV_DIESEL_SMOKE = 2,
20 EV_ELECTRIC_SPARK = 3,
21 EV_CRASH_SMOKE = 4,
22 EV_EXPLOSION_LARGE = 5,
23 EV_BREAKDOWN_SMOKE = 6,
24 EV_EXPLOSION_SMALL = 7,
25 EV_BULLDOZER = 8,
26 EV_BUBBLE = 9,
27 EV_BREAKDOWN_SMOKE_AIRCRAFT = 10,
28 EV_COPPER_MINE_SMOKE = 11,
29 EV_END
30};
31
32 EffectVehicle *CreateEffectVehicle(int x, int y, int z, EffectVehicleType type);
33 EffectVehicle *CreateEffectVehicleAbove(int x, int y, int z, EffectVehicleType type);
34 EffectVehicle *CreateEffectVehicleRel(const Vehicle *v, int x, int y, int z, EffectVehicleType type);
35
36#endif /* EFFECTVEHICLE_FUNC_H */
CreateEffectVehicleRel
EffectVehicle * CreateEffectVehicleRel(const Vehicle *v, int x, int y, int z, EffectVehicleType type)
Create an effect vehicle above a particular vehicle.
Definition effectvehicle.cpp:610
CreateEffectVehicle
EffectVehicle * CreateEffectVehicle(int x, int y, int z, EffectVehicleType type)
Create an effect vehicle at a particular location.
Definition effectvehicle.cpp:566
EffectVehicleType
EffectVehicleType
Effect vehicle types.
Definition effectvehicle_func.h:16
EV_BREAKDOWN_SMOKE
@ EV_BREAKDOWN_SMOKE
Smoke of broken vehicles except aircraft.
Definition effectvehicle_func.h:23
EV_CRASH_SMOKE
@ EV_CRASH_SMOKE
Smoke of disasters.
Definition effectvehicle_func.h:21
EV_EXPLOSION_SMALL
@ EV_EXPLOSION_SMALL
Various explosions.
Definition effectvehicle_func.h:24
EV_STEAM_SMOKE
@ EV_STEAM_SMOKE
Smoke of steam engines.
Definition effectvehicle_func.h:18
EV_DIESEL_SMOKE
@ EV_DIESEL_SMOKE
Smoke of diesel engines.
Definition effectvehicle_func.h:19
EV_EXPLOSION_LARGE
@ EV_EXPLOSION_LARGE
Various explosions.
Definition effectvehicle_func.h:22
EV_BREAKDOWN_SMOKE_AIRCRAFT
@ EV_BREAKDOWN_SMOKE_AIRCRAFT
Smoke of broken aircraft.
Definition effectvehicle_func.h:27
EV_ELECTRIC_SPARK
@ EV_ELECTRIC_SPARK
Sparks of electric engines.
Definition effectvehicle_func.h:20
EV_BUBBLE
@ EV_BUBBLE
Bubble of bubble generator (industry).
Definition effectvehicle_func.h:26
EV_BULLDOZER
@ EV_BULLDOZER
Bulldozer at roadworks.
Definition effectvehicle_func.h:25
EV_CHIMNEY_SMOKE
@ EV_CHIMNEY_SMOKE
Smoke of power plant (industry).
Definition effectvehicle_func.h:17
EV_COPPER_MINE_SMOKE
@ EV_COPPER_MINE_SMOKE
Smoke at copper mine.
Definition effectvehicle_func.h:28
CreateEffectVehicleAbove
EffectVehicle * CreateEffectVehicleAbove(int x, int y, int z, EffectVehicleType type)
Create an effect vehicle above a particular location.
Definition effectvehicle.cpp:594
EffectVehicle
A special vehicle is one of the following:
Definition effectvehicle_base.h:24
Vehicle
Vehicle data structure.
Definition vehicle_base.h:205
vehicle_type.h
Types related to vehicles.