#include <simgear/props/props_io.hxx>
#include <simgear/debug/logstream.hxx>
#include <simgear/sg_inlines.h>
+#include <simgear/structure/exception.hxx>
#include <Environment/environment_mgr.hxx>
#include <Environment/environment.hxx>
_dynamics = new FGAirportDynamics(this);
XMLLoader::load(_dynamics);
-
+ _dynamics->init();
+
FGRunwayPreference rwyPrefs(this);
XMLLoader::load(&rwyPrefs);
_dynamics->setRwyUse(rwyPrefs);
- XMLLoader::load(_dynamics->getSIDs());
return _dynamics;
}
return (FGTaxiway*) flightgear::NavDataCache::instance()->loadById(mTaxiways[aIndex]);
}
-bool FGAirport::hasTaxiwayWithIdent(const string& aIdent) const
-{
- return flightgear::NavDataCache::instance()->airportItemWithIdent(guid(), FGPositioned::RUNWAY, aIdent) != 0;
-}
-
-FGTaxiway* FGAirport::getTaxiwayByIdent(const string& aIdent) const
-{
- PositionedID id = flightgear::NavDataCache::instance()->airportItemWithIdent(guid(), FGPositioned::RUNWAY, aIdent);
- if (id == 0) {
- SG_LOG(SG_GENERAL, SG_ALERT, "no such runway '" << aIdent << "' at airport " << ident());
- throw sg_range_exception("unknown runway " + aIdent + " at airport:" + ident(), "FGAirport::getTaxiwayByIdent");
- }
-
- return (FGTaxiway*) flightgear::NavDataCache::instance()->loadById(id);
-}
-
unsigned int FGAirport::numPavements() const
{
loadTaxiways();