#include <simgear/compiler.h>
#include "positioned.hxx"
+#include <Airports/airports_fwd.hxx>
-// forward decls
-class FGRunway;
-
-class FGMarkerBeacon : public FGPositioned
+class FGMarkerBeaconRecord : public FGPositioned
{
public:
- static FGMarkerBeacon* create(int aTy, const std::string& aName, const SGGeod& aPos);
+ FGMarkerBeaconRecord(PositionedID aGuid, Type aTy, PositionedID aRunway, const SGGeod& aPos);
+
+ FGRunwayRef runway() const;
private:
- FGMarkerBeacon(Type aTy, FGRunway* aRunway, const SGGeod& aPos);
-
- FGRunway* _runway; // should this be ref-ptr?
- /**
- * Helper to map a 'Robin' integer type to an FGPositioned::Type
- */
- static Type mapType(int aTy);
+ PositionedID _runway;
};
#endif // _FG_MARKERBEACON_HXX