OpenTTD
disaster_vehicle.h
Go to the documentation of this file.
1 /* $Id: disaster_vehicle.h 26872 2014-09-21 11:12:42Z 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 DISASTER_VEHICLE_H
13 #define DISASTER_VEHICLE_H
14 
15 #include "vehicle_base.h"
16 
34 };
35 
39 struct DisasterVehicle FINAL : public SpecializedVehicle<DisasterVehicle, VEH_DISASTER> {
42  byte flags;
43 
48  virtual ~DisasterVehicle() {}
49 
50  void UpdatePosition(int x, int y, int z);
52  void UpdateImage();
53  bool Tick();
54 };
55 
60 #define FOR_ALL_DISASTERVEHICLES(var) FOR_ALL_VEHICLES_OF_TYPE(DisasterVehicle, var)
61 
62 #endif /* DISASTER_VEHICLE_H */