summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index 26a76dc85..59584da78 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -1088,28 +1088,6 @@ struct SpecializedVehicle : public Vehicle {
*/
#define FOR_ALL_VEHICLES_OF_TYPE(name, var) FOR_ALL_ITEMS_FROM(name, vehicle_index, var, 0) if (var->type == name::EXPECTED_TYPE)
-/**
- * Disasters, like submarines, skyrangers and their shadows, belong to this class.
- */
-struct DisasterVehicle FINAL : public SpecializedVehicle<DisasterVehicle, VEH_DISASTER> {
- SpriteID image_override; ///< Override for the default disaster vehicle sprite.
- VehicleID big_ufo_destroyer_target; ///< The big UFO that this destroyer is supposed to bomb.
-
- /** We don't want GCC to zero our struct! It already is zeroed and has an index! */
- DisasterVehicle() : SpecializedVehicleBase() {}
- /** We want to 'destruct' the right class. */
- virtual ~DisasterVehicle() {}
-
- void UpdateDeltaXY(Direction direction);
- bool Tick();
-};
-
-/**
- * Iterate over disaster vehicles.
- * @param var The variable used to iterate over.
- */
-#define FOR_ALL_DISASTERVEHICLES(var) FOR_ALL_VEHICLES_OF_TYPE(DisasterVehicle, var)
-
/** Generates sequence of free UnitID numbers */
struct FreeUnitIDGenerator {
bool *cache; ///< array of occupied unit id numbers