Esempio n. 1
0
//------------------------------------------------------------------------------
// Simulation access functions
//------------------------------------------------------------------------------
Simulation::Player* Display::getOwnship()
{
    Simulation::Player* p = nullptr;
    Simulation::Station* sta = getStation();
    if (sta != nullptr) p = sta->getOwnship();
    return p;
}
Simulation::Aircraft* MapDisplay::getOwnship()
{
   Simulation::Aircraft* p = 0;
   Simulation::Station* sta = getStation();
   if (sta != 0) {
      p = dynamic_cast<Simulation::Aircraft*>(sta->getOwnship());
   }
   return p;
}
Simulation::Aircraft* AdiDisplay::getOwnship()
{
   Simulation::Aircraft* pA = 0;
   Simulation::Station* sta = getStation();
   if (sta != 0) {
      pA = dynamic_cast<Simulation::Aircraft*>(sta->getOwnship());

      //const unsigned int ffrate = 5;    //LDB
      //sta->setFastForwardRate(ffrate);  //LDB
   }
   return pA;
}