コード例 #1
0
Simulation::Simulation* Display::getSimulation()
{
    Simulation::Simulation* s = nullptr;
    Simulation::Station* sta = getStation();
    if (sta != nullptr) s = sta->getSimulation();
    return s;
}
コード例 #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;
}
コード例 #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;
}
コード例 #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;
}