diff options
author | rubidium <rubidium@openttd.org> | 2008-04-20 11:12:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-20 11:12:07 +0000 |
commit | b139756e2ba70431364b21a5b49950fc991dbdef (patch) | |
tree | dd68b4e6a0cf26c8d4091dc8be264021cfb88c35 /src/effectvehicle_func.h | |
parent | f55ffd14bdaa85f9eb7c22c442f46169f63137be (diff) | |
download | openttd-b139756e2ba70431364b21a5b49950fc991dbdef.tar.xz |
(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp
Diffstat (limited to 'src/effectvehicle_func.h')
-rw-r--r-- | src/effectvehicle_func.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/effectvehicle_func.h b/src/effectvehicle_func.h new file mode 100644 index 000000000..4e0dead97 --- /dev/null +++ b/src/effectvehicle_func.h @@ -0,0 +1,28 @@ +/* $Id$ */ + +/** @file effectvehicle.h Functions related to effect vehicles. */ + +#ifndef EFFECTVEHICLE_FUNC_H +#define EFFECTVEHICLE_FUNC_H + +#include "vehicle_type.h" + +/** Effect vehicle types */ +enum EffectVehicleType { + EV_CHIMNEY_SMOKE = 0, + EV_STEAM_SMOKE = 1, + EV_DIESEL_SMOKE = 2, + EV_ELECTRIC_SPARK = 3, + EV_SMOKE = 4, + EV_EXPLOSION_LARGE = 5, + EV_BREAKDOWN_SMOKE = 6, + EV_EXPLOSION_SMALL = 7, + EV_BULLDOZER = 8, + EV_BUBBLE = 9 +}; + +Vehicle *CreateEffectVehicle(int x, int y, int z, EffectVehicleType type); +Vehicle *CreateEffectVehicleAbove(int x, int y, int z, EffectVehicleType type); +Vehicle *CreateEffectVehicleRel(const Vehicle *v, int x, int y, int z, EffectVehicleType type); + +#endif /* EFFECTVEHICLE_FUNC_H */ |