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 <http://www.gnu.org/licenses/>.
8 /** @file effectvehicle_base.h Base class for all effect vehicles. */
10 #ifndef EFFECTVEHICLE_BASE_H
11 #define EFFECTVEHICLE_BASE_H
13 #include "vehicle_base.h"
14 #include "transparency.h"
17 * A special vehicle is one of the following:
19 * - electric sparks for trains
21 * - bulldozer (road works)
22 * - bubbles (industry)
24 struct EffectVehicle FINAL
: public SpecializedVehicle
<EffectVehicle
, VEH_EFFECT
> {
25 uint16 animation_state
; ///< State primarily used to change the graphics/behaviour.
26 byte animation_substate
; ///< Sub state to time the change of the graphics/behaviour.
28 /** We don't want GCC to zero our struct! It already is zeroed and has an index! */
29 EffectVehicle() : SpecializedVehicleBase() {}
30 /** We want to 'destruct' the right class. */
31 virtual ~EffectVehicle() {}
35 TransparencyOption
GetTransparencyOption() const;
38 #endif /* EFFECTVEHICLE_BASE_H */