#include "ATCmgr.hxx"
FGATIS::FGATIS() :
- display(false),
- displaying(false),
transmission(""),
trans_ident(""),
atis_failed(false),
{
vPtr = globals->get_ATC_mgr()->GetVoicePointer(ATIS);
voiceOK = (vPtr == NULL ? false : true);
+ _type = ATIS;
}
FGATIS::~FGATIS() {
// Main update function - checks whether we are displaying or not the correct message.
void FGATIS::Update(double dt) {
- if(display) {
- if(displaying) {
+ if(_display) {
+ if(_displaying) {
// Check if we need to update the message
// - basically every hour and if the weather changes significantly at the station
//globals->get_ATC_display()->ChangeRepeatingMessage(transmission);
UpdateTransmission();
//cout << "ATIS.CXX - calling ATCMgr to render transmission..." << endl;
Render(transmission, refname, true);
- displaying = true;
+ _displaying = true;
}
} else {
// We shouldn't be displaying
- if(displaying) {
+ if(_displaying) {
//cout << "ATIS.CXX - calling NoRender()..." << endl;
NoRender(refname);
- displaying = false;
+ _displaying = false;
}
}
}
#endif
string rwy_no = globals->get_runways()->search(ident, int(hdg));
- if(rwy_no != (string)"NN") {
+ if(rwy_no != "NN") {
transmission += " / Landing_and_departing_runway ";
transmission += ConvertRwyNumToSpokenString(atoi(rwy_no.c_str()));
//cout << "in atis.cxx, r.rwy_no = " << rwy_no << " r.id = " << r->id << " r.heading = " << r->heading << endl;