Fixed change altitude and speed for helicopters

This commit is contained in:
Pax1601
2023-12-05 09:11:36 +01:00
parent 62142ed976
commit 71cf7c67f7
5 changed files with 23 additions and 19 deletions

View File

@@ -1,6 +1,8 @@
#pragma once
#include "airunit.h"
#define AIRCRAFT_DEST_DIST_THR 2000 // Meters
class Aircraft : public AirUnit
{
public:
@@ -11,6 +13,8 @@ public:
virtual void changeSpeed(string change);
virtual void changeAltitude(string change);
virtual double getDestinationReachedThreshold() { return AIRCRAFT_DEST_DIST_THR; }
protected:
static json::value database;
};