OpenTTD: src/effectvehicle_base.h Source File

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

effectvehicle_base.h
Go to the documentation of this file.
1 /* $Id: effectvehicle_base.h 23735 2012-01-03 20:26:05Z rubidium $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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 */
9
12 #ifndef EFFECTVEHICLE_BASE_H
13 #define EFFECTVEHICLE_BASE_H
14
15 #include "vehicle_base.h"
16 #include "transparency.h"
17
26 struct EffectVehicle FINAL : public SpecializedVehicle<EffectVehicle, VEH_EFFECT> {
27 uint16 animation_state;
28 byte animation_substate;
29
31 EffectVehicle() : SpecializedVehicleBase() {}
33 virtual ~EffectVehicle() {}
34
35 void UpdateDeltaXY(Direction direction);
36 bool Tick();
37 TransparencyOption GetTransparencyOption() const;
38 };
39
44 #define FOR_ALL_EFFECTVEHICLES(var) FOR_ALL_VEHICLES_OF_TYPE(EffectVehicle, var)
45
46 #endif /* EFFECTVEHICLE_BASE_H */