mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T27, preparation for refactoring, turned private slots into normal member functions
* Motivation: slots no longer required, and in the driver the (small) slot overhead might matter * renamed some members to better reflect future use * timer intervals as constexpr * fixed some typos and comments
This commit is contained in:
@@ -36,7 +36,7 @@ namespace BlackSimPlugin
|
||||
//! Destructor
|
||||
~CSimConnectObject() {}
|
||||
|
||||
//! Get Callsign
|
||||
//! Get callsign
|
||||
const BlackMisc::Aviation::CCallsign &getCallsign() const { return m_aircraft.getCallsign(); }
|
||||
|
||||
//! Simulated aircraft (as added)
|
||||
@@ -57,6 +57,9 @@ namespace BlackSimPlugin
|
||||
//! Get current lights (requested from simulator)
|
||||
const BlackMisc::Aviation::CAircraftLights &getCurrentLightsInSimulator() const { return m_currentLightsInSim; }
|
||||
|
||||
//! Received lights in simulator
|
||||
bool hasCurrentLightsInSimulator() const { return !m_currentLightsInSim.isNull(); }
|
||||
|
||||
//! Set current lights when received from simulator
|
||||
void setCurrentLightsInSimulator(const BlackMisc::Aviation::CAircraftLights &lights) { m_currentLightsInSim = lights; }
|
||||
|
||||
@@ -162,7 +165,22 @@ namespace BlackSimPlugin
|
||||
bool isKnownSimObjectId(DWORD objectId) const;
|
||||
|
||||
//! Pending add condition
|
||||
bool containsPendingAdd() const;
|
||||
bool containsPendingAdded() const;
|
||||
|
||||
//! Pending removed condition
|
||||
bool containsPendingRemoved() const;
|
||||
|
||||
//! Number of pending added
|
||||
int countPendingAdded() const;
|
||||
|
||||
//! Number of pending removed
|
||||
int countPendingRemoved() const;
|
||||
|
||||
//! Callsigns of pending added callsigns
|
||||
BlackMisc::Aviation::CCallsignSet getPendingAddedCallsigns() const;
|
||||
|
||||
//! Callsigns of pending removed callsigns
|
||||
BlackMisc::Aviation::CCallsignSet getPendingRemovedCallsigns() const;
|
||||
|
||||
//! Toggle interpolator modes
|
||||
void toggleInterpolatorModes();
|
||||
|
||||
Reference in New Issue
Block a user