mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
Ref T111, default implementation for physicallyRemoveAllRemoteAircraft() in CSimulatorCommon::physicallyRemoveAllRemoteAircraft().
This commit is contained in:
committed by
Mathew Sutcliffe
parent
384c186fce
commit
8bffc9b598
@@ -367,6 +367,13 @@ namespace BlackCore
|
|||||||
return removed;
|
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)
|
bool CSimulatorCommon::parseCommandLine(const QString &commandLine, const CIdentifier &originator)
|
||||||
{
|
{
|
||||||
if (this->isMyIdentifier(originator)) { return false; }
|
if (this->isMyIdentifier(originator)) { return false; }
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ namespace BlackCore
|
|||||||
virtual void unload() override;
|
virtual void unload() override;
|
||||||
virtual bool isShuttingDown() const override;
|
virtual bool isShuttingDown() const override;
|
||||||
virtual int physicallyRemoveMultipleRemoteAircraft(const BlackMisc::Aviation::CCallsignSet &callsigns) override;
|
virtual int physicallyRemoveMultipleRemoteAircraft(const BlackMisc::Aviation::CCallsignSet &callsigns) override;
|
||||||
|
virtual int physicallyRemoveAllRemoteAircraft() override;
|
||||||
|
|
||||||
//! \addtogroup swiftdotcommands
|
//! \addtogroup swiftdotcommands
|
||||||
//! @{
|
//! @{
|
||||||
|
|||||||
Reference in New Issue
Block a user