]> git.mxchange.org Git - flightgear.git/commit
James Turner:
authorehofman <ehofman>
Thu, 11 Sep 2008 08:38:09 +0000 (08:38 +0000)
committerehofman <ehofman>
Thu, 11 Sep 2008 08:38:09 +0000 (08:38 +0000)
commitaa78341698c0ede62bd45d864c1e866d309b420d
tree7c2f5f1a1cefb24ada1a805975b537e40263eced
parent3b486e1aeecce210ea3f4772617fe6eeed8f6c9e
James Turner:
Convert FGRunway to be heap-based, and inherit FGPositioned. This is a large, ugly change, since FGRunway was essentially a plain struct, with no accessors or abstraction. This change adds various helpers and accessors to FGRunway, but doesn't change many places to use them - that will be a follow up series of patches. It's still a large patch, but outside of FGAirport and FGRunway, mostly mechanical search-and-replace.

An interesting part of this change is that reciprocal runways now exist as independent objects, rather than being created on the fly by the search methods. This simplifies some pieces of code that search for and iterate runways. For users who only want one 'end' of a runway, the new 'isReciprocal' predicate allows them to ignore the 'other' end. Current the only user of this is the 'ground-radar' ATC feature. If we had data on which runways are truly 'single-ended', it would now be trivial to use this in the airport loader to *not* create the reciprocal.
30 files changed:
src/AIModel/AIFlightPlan.hxx
src/AIModel/AIFlightPlanCreate.cxx
src/AIModel/AIFlightPlanCreateCruise.cxx
src/ATCDCL/AILocalTraffic.cxx
src/ATCDCL/ATCutils.cxx
src/ATCDCL/ATCutils.hxx
src/ATCDCL/approach.cxx
src/ATCDCL/atis.cxx
src/ATCDCL/ground.cxx
src/ATCDCL/tower.cxx
src/Airports/apt_loader.cxx
src/Airports/dynamics.cxx
src/Airports/runwayprefs.cxx
src/Airports/runways.cxx
src/Airports/runways.hxx
src/Airports/simple.cxx
src/Airports/simple.hxx
src/Cockpit/hud.cxx
src/Cockpit/hud.hxx
src/Cockpit/hud_rwy.cxx
src/Instrumentation/HUD/HUD.hxx
src/Instrumentation/HUD/HUD_runway.cxx
src/Instrumentation/KLN89/kln89_page_apt.cxx
src/Instrumentation/KLN89/kln89_page_apt.hxx
src/Instrumentation/groundradar.cxx
src/Instrumentation/groundradar.hxx
src/Instrumentation/mk_viii.cxx
src/Main/fg_init.cxx
src/Navaids/navdb.cxx
src/Scripting/NasalSys.cxx