Mostly unused private vars, for various reasons.
TrafficVector activeTraffic;
TrafficVectorIterator currTraffic;
- bool foundRoute;
double totalDistance, maxDistance;
FGTowerController *towerController;
FGAirport *parent;
input->removeChangeListener(listener);
delete listener;
- SGCommandMgr* cmdMgr = SGCommandMgr::instance();
+ //SGCommandMgr* cmdMgr = SGCommandMgr::instance();
//cmdMgr->removeCommand("define-user-waypoint");
}
#endif
#include <Navaids/markerbeacon.hxx>
+#include <Airports/runways.hxx>
+#include <Navaids/NavDataCache.hxx>
using std::string;
_runway(aRunway)
{
}
+
+FGRunwayRef FGMarkerBeaconRecord::runway() const
+{
+ FGPositioned* p = flightgear::NavDataCache::instance()->loadById(_runway);
+ assert(p->type() == FGPositioned::RUNWAY);
+ return static_cast<FGRunway*>(p);
+}
\ No newline at end of file
#include <simgear/compiler.h>
#include "positioned.hxx"
-
+#include <Airports/airports_fwd.hxx>
class FGMarkerBeaconRecord : public FGPositioned
{
public:
FGMarkerBeaconRecord(PositionedID aGuid, Type aTy, PositionedID aRunway, const SGGeod& aPos);
+
+ FGRunwayRef runway() const;
private:
PositionedID _runway;
class FGJoyClient : public FGProtocol {
char buf[256];
- int length;
public:
class FGJsClient : public FGProtocol {
char buf[256];
- int length;
double axis[4];
SGPropertyNode_ptr axisdef[4];
string axisdefstr[4];
class FGLFSGlass : public FGProtocol {
FGLFSGlassData buf;
- int length;
// Environment
SGPropertyNode_ptr press_node;
class FGNative : public FGProtocol {
FGInterface buf;
- int length;
public:
FGNetCtrls net_ctrls;
FGControls ctrls;
- int length;
-
public:
FGNativeCtrls();
class FGNativeFDM : public FGProtocol {
FGNetFDM buf;
- int length;
public:
class FGNativeGUI : public FGProtocol {
FGNetGUI buf;
- int length;
public: