Ejemplo n.º 1
0
Simulation::Simulation* Display::getSimulation()
{
    Simulation::Simulation* s = nullptr;
    Simulation::Station* sta = getStation();
    if (sta != nullptr) s = sta->getSimulation();
    return s;
}
Ejemplo n.º 2
0
//------------------------------------------------------------------------------
// Simulation access functions
//------------------------------------------------------------------------------
Simulation::Player* Display::getOwnship()
{
    Simulation::Player* p = nullptr;
    Simulation::Station* sta = getStation();
    if (sta != nullptr) p = sta->getOwnship();
    return p;
}
Ejemplo n.º 3
0
Simulation::Aircraft* MapDisplay::getOwnship()
{
   Simulation::Aircraft* p = 0;
   Simulation::Station* sta = getStation();
   if (sta != 0) {
      p = dynamic_cast<Simulation::Aircraft*>(sta->getOwnship());
   }
   return p;
}
Ejemplo n.º 4
0
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;
}