mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Issue #94 Add new class CAircraftVelocity as member of CAircraftSituation
This commit is contained in:
@@ -112,9 +112,15 @@ namespace BlackMisc
|
||||
//! Get situation.
|
||||
const Aviation::CAircraftSituation &getSituation() const { return m_situation; }
|
||||
|
||||
//! Set situation.
|
||||
//! Set situation. Won't overwrite the velocity unless it held the default value.
|
||||
void setSituation(const Aviation::CAircraftSituation &situation);
|
||||
|
||||
//! Get 6DOF velocity.
|
||||
const Aviation::CAircraftVelocity &getVelocity() const { return m_situation.getVelocity(); }
|
||||
|
||||
//! Set 6DOF velocity.
|
||||
void setVelocity(const Aviation::CAircraftVelocity &velocity) { m_situation.setVelocity(velocity); }
|
||||
|
||||
//! Get user
|
||||
const Network::CUser &getPilot() const { return m_pilot; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user