Ref T111, default implementation for physicallyRemoveAllRemoteAircraft() in CSimulatorCommon::physicallyRemoveAllRemoteAircraft().

This commit is contained in:
Klaus Basan
2017-08-02 01:03:42 +02:00
committed by Mathew Sutcliffe
parent 384c186fce
commit 8bffc9b598
2 changed files with 8 additions and 0 deletions

View File

@@ -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; }

View File

@@ -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
//! @{