Mercurial > hg > openttd
view src/effectvehicle_func.h @ 10480:649ba332458f draft
(svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 24 Dec 2008 09:53:15 +0000 |
parents | d48433370037 |
children | 2e291154df46 |
line wrap: on
line source
/* $Id$ */ /** @file effectvehicle_func.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 */