mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
Some convenience functions ATC station
This commit is contained in:
@@ -57,6 +57,31 @@ namespace BlackMisc
|
||||
this->m_controller.setCallsign(callsign);
|
||||
}
|
||||
|
||||
/*
|
||||
* METAR
|
||||
*/
|
||||
bool CAtcStation::hasMetar() const
|
||||
{
|
||||
return this->m_metar.hasMessage();
|
||||
}
|
||||
|
||||
/*
|
||||
* Suffix
|
||||
*/
|
||||
QString CAtcStation::getCallsignSuffix() const
|
||||
{
|
||||
return m_callsign.getSuffix();
|
||||
}
|
||||
|
||||
/*
|
||||
* Callsign
|
||||
*/
|
||||
void CAtcStation::setCallsign(const CCallsign &callsign)
|
||||
{
|
||||
this->m_callsign = callsign;
|
||||
this->m_controller.setCallsign(callsign);
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert to string
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user