mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
f80e093a0a
commit
b408c8ffed
@@ -166,7 +166,7 @@ namespace BlackGui
|
||||
BlackMisc::Aviation::CAircraftSituationList m_lastInterpolations; //!< list of last interpolations
|
||||
BlackMisc::Aviation::CCallsign m_callsign; //!< current callsign
|
||||
int m_elvRequested = 0; //!< counted via signal
|
||||
int m_elvReceived = 0; //!< counted via signal
|
||||
int m_elvReceived = 0; //!< counted via signal
|
||||
|
||||
static const QString &startText();
|
||||
static const QString &stopText();
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace BlackMisc
|
||||
//! Set aircraft parts and mark as synchronized
|
||||
int setAircraftPartsSynchronized(const Aviation::CCallsign &callsign, const Aviation::CAircraftParts &parts, bool onlyFirst = true);
|
||||
|
||||
//! Set aircraft parts
|
||||
//! Set aircraft situation
|
||||
int setAircraftSituation(const Aviation::CCallsign &callsign, const Aviation::CAircraftSituation &situation, bool onlyFirst = true);
|
||||
|
||||
//! Set ground elevation
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace BlackSimPlugin
|
||||
CLobbyClient(QObject *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CLobbyClient();
|
||||
virtual ~CLobbyClient() override;
|
||||
|
||||
//! Initialize DirectPlay
|
||||
HRESULT initDirectPlay();
|
||||
@@ -45,9 +45,9 @@ namespace BlackSimPlugin
|
||||
//! DirectPlay message handler
|
||||
HRESULT directPlayLobbyMessageHandler(DWORD messageId, void *msgBuffer);
|
||||
|
||||
IDirectPlay8Peer *m_directPlayPeer = nullptr; //!< DirectPlay peer address
|
||||
IDirectPlay8Address *m_deviceAddress = nullptr; //!< DirectPlay device address
|
||||
IDirectPlay8Address *m_hostAddress = nullptr; //!< DirectPlay device address
|
||||
IDirectPlay8Peer *m_directPlayPeer = nullptr; //!< DirectPlay peer address
|
||||
IDirectPlay8Address *m_deviceAddress = nullptr; //!< DirectPlay device address
|
||||
IDirectPlay8Address *m_hostAddress = nullptr; //!< DirectPlay device address
|
||||
IDirectPlay8LobbyClient *m_dpLobbyClient = nullptr;
|
||||
|
||||
QString m_hostname = "localhost";
|
||||
|
||||
@@ -40,8 +40,6 @@ namespace BlackSimPlugin
|
||||
{
|
||||
CAircraftSituation aircraftSituationFromFS9(const MPPositionVelocity &positionVelocity)
|
||||
{
|
||||
CAircraftSituation situation;
|
||||
|
||||
double dHigh = positionVelocity.lat_i;
|
||||
double dLow = positionVelocity.lat_f;
|
||||
|
||||
@@ -78,6 +76,7 @@ namespace BlackSimPlugin
|
||||
|
||||
dLow = dLow / 65536.0;
|
||||
|
||||
CAircraftSituation situation;
|
||||
situation.setPosition(position);
|
||||
situation.setAltitude(CAltitude(dHigh + dLow, CAltitude::MeanSeaLevel, CLengthUnit::m()));
|
||||
const double groundSpeed = positionVelocity.ground_velocity / 65536.0;
|
||||
|
||||
@@ -141,9 +141,9 @@ namespace BlackSimPlugin
|
||||
//! Check connection to FS9
|
||||
bool checkConnection(bool canLobbyConnect);
|
||||
|
||||
QTimer *m_timer = nullptr;
|
||||
QTimer *m_timer = nullptr;
|
||||
bool m_isConnecting = false;
|
||||
bool m_isStarted = false;
|
||||
bool m_isStarted = false;
|
||||
QSharedPointer<CFs9Host> m_fs9Host;
|
||||
QSharedPointer<CLobbyClient> m_lobbyClient;
|
||||
};
|
||||
@@ -165,10 +165,10 @@ namespace BlackSimPlugin
|
||||
//! \copydoc BlackCore::ISimulatorFactory::create
|
||||
virtual BlackCore::ISimulator *create(
|
||||
const BlackMisc::Simulation::CSimulatorPluginInfo &info,
|
||||
BlackMisc::Simulation::IOwnAircraftProvider *ownAircraftProvider,
|
||||
BlackMisc::Simulation::IOwnAircraftProvider *ownAircraftProvider,
|
||||
BlackMisc::Simulation::IRemoteAircraftProvider *remoteAircraftProvider,
|
||||
BlackMisc::Weather::IWeatherGridProvider *weatherGridProvider,
|
||||
BlackMisc::Network::IClientProvider *clientProvider
|
||||
BlackMisc::Weather::IWeatherGridProvider *weatherGridProvider,
|
||||
BlackMisc::Network::IClientProvider *clientProvider
|
||||
) override;
|
||||
|
||||
//! \copydoc BlackCore::ISimulatorFactory::createListener
|
||||
|
||||
Reference in New Issue
Block a user