From 8bffc9b598ffe0c8bfb20a83f13de348042ef4f9 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 2 Aug 2017 01:03:42 +0200 Subject: [PATCH] Ref T111, default implementation for physicallyRemoveAllRemoteAircraft() in CSimulatorCommon::physicallyRemoveAllRemoteAircraft(). --- src/blackcore/simulatorcommon.cpp | 7 +++++++ src/blackcore/simulatorcommon.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/blackcore/simulatorcommon.cpp b/src/blackcore/simulatorcommon.cpp index 7b28c7639..d56c664d3 100644 --- a/src/blackcore/simulatorcommon.cpp +++ b/src/blackcore/simulatorcommon.cpp @@ -367,6 +367,13 @@ namespace BlackCore return removed; } + int CSimulatorCommon::physicallyRemoveAllRemoteAircraft() + { + // a default implementation, but normally overridden by the sims + const CCallsignSet callsigns = this->getAircraftInRangeCallsigns(); + return this->physicallyRemoveMultipleRemoteAircraft(callsigns); + } + bool CSimulatorCommon::parseCommandLine(const QString &commandLine, const CIdentifier &originator) { if (this->isMyIdentifier(originator)) { return false; } diff --git a/src/blackcore/simulatorcommon.h b/src/blackcore/simulatorcommon.h index 0f57c3ced..f1fc24a02 100644 --- a/src/blackcore/simulatorcommon.h +++ b/src/blackcore/simulatorcommon.h @@ -85,6 +85,7 @@ namespace BlackCore virtual void unload() override; virtual bool isShuttingDown() const override; virtual int physicallyRemoveMultipleRemoteAircraft(const BlackMisc::Aviation::CCallsignSet &callsigns) override; + virtual int physicallyRemoveAllRemoteAircraft() override; //! \addtogroup swiftdotcommands //! @{