mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 10:26:03 +08:00
refs #242, own aircraft context methods
This commit is contained in:
@@ -34,6 +34,16 @@ namespace BlackCore
|
|||||||
return this->getRuntime()->getIContextApplication();
|
return this->getRuntime()->getIContextApplication();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IContextOwnAircraft *CContext::getIContextOwnAircraft()
|
||||||
|
{
|
||||||
|
return this->getRuntime()->getIContextOwnAircraft();
|
||||||
|
}
|
||||||
|
|
||||||
|
const IContextOwnAircraft *CContext::getIContextOwnAircraft() const
|
||||||
|
{
|
||||||
|
return this->getRuntime()->getIContextOwnAircraft();
|
||||||
|
}
|
||||||
|
|
||||||
IContextSettings *CContext::getIContextSettings()
|
IContextSettings *CContext::getIContextSettings()
|
||||||
{
|
{
|
||||||
return this->getRuntime()->getIContextSettings();
|
return this->getRuntime()->getIContextSettings();
|
||||||
|
|||||||
@@ -47,11 +47,11 @@ namespace BlackCore
|
|||||||
// cross context access
|
// cross context access
|
||||||
//
|
//
|
||||||
|
|
||||||
//! Context for network
|
//! Context for application
|
||||||
IContextNetwork *getIContextNetwork();
|
const IContextApplication *getIContextApplication() const;
|
||||||
|
|
||||||
//! Context for network
|
//! Application
|
||||||
const IContextNetwork *getIContextNetwork() const;
|
IContextApplication *getIContextApplication();
|
||||||
|
|
||||||
//! Context for network
|
//! Context for network
|
||||||
IContextAudio *getIContextAudio();
|
IContextAudio *getIContextAudio();
|
||||||
@@ -59,18 +59,24 @@ namespace BlackCore
|
|||||||
//! Context for network
|
//! Context for network
|
||||||
const IContextAudio *getIContextAudio() const;
|
const IContextAudio *getIContextAudio() const;
|
||||||
|
|
||||||
|
//! Context for network
|
||||||
|
IContextNetwork *getIContextNetwork();
|
||||||
|
|
||||||
|
//! Context for network
|
||||||
|
const IContextNetwork *getIContextNetwork() const;
|
||||||
|
|
||||||
|
//! Context for own aircraft
|
||||||
|
IContextOwnAircraft *getIContextOwnAircraft();
|
||||||
|
|
||||||
|
//! Context for own aircraft
|
||||||
|
const IContextOwnAircraft *getIContextOwnAircraft() const;
|
||||||
|
|
||||||
//! Settings
|
//! Settings
|
||||||
IContextSettings *getIContextSettings();
|
IContextSettings *getIContextSettings();
|
||||||
|
|
||||||
//! Settings
|
//! Settings
|
||||||
const IContextSettings *getIContextSettings() const;
|
const IContextSettings *getIContextSettings() const;
|
||||||
|
|
||||||
//! Context for application
|
|
||||||
const IContextApplication *getIContextApplication() const;
|
|
||||||
|
|
||||||
//! Application
|
|
||||||
IContextApplication *getIContextApplication();
|
|
||||||
|
|
||||||
//! Context for simulator
|
//! Context for simulator
|
||||||
const IContextSimulator *getIContextSimulator() const;
|
const IContextSimulator *getIContextSimulator() const;
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ namespace BlackCore
|
|||||||
//! Destructor
|
//! Destructor
|
||||||
virtual ~CContextOwnAircraft();
|
virtual ~CContextOwnAircraft();
|
||||||
|
|
||||||
|
//! Own aircraft
|
||||||
|
const BlackMisc::Aviation::CAircraft &ownAircraft() const { return this->m_ownAircraft; }
|
||||||
|
|
||||||
|
//! Own aircraft
|
||||||
|
BlackMisc::Aviation::CAircraft &ownAircraft() { return this->m_ownAircraft; }
|
||||||
|
|
||||||
public slots: // IContextOwnAircraft overrides
|
public slots: // IContextOwnAircraft overrides
|
||||||
|
|
||||||
//! \copydoc IContextOwnAircraft::setOwnAircraft()
|
//! \copydoc IContextOwnAircraft::setOwnAircraft()
|
||||||
@@ -60,7 +66,6 @@ namespace BlackCore
|
|||||||
//! Init my very own aircraft
|
//! Init my very own aircraft
|
||||||
void initOwnAircraft();
|
void initOwnAircraft();
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user