#endif
#include <simgear/compiler.h>
+#include <simgear/props/props.hxx>
#include "runwaybase.hxx"
* 12 - lakebed
*/
-FGRunwayBase::FGRunwayBase(Type aTy, const string& aIdent,
+FGRunwayBase::FGRunwayBase(PositionedID aGuid, Type aTy, const string& aIdent,
const SGGeod& aGeod,
const double heading, const double length,
const double width,
- const int surface_code,
- bool index) :
- FGPositioned(aTy, aIdent, aGeod)
+ const int surface_code) :
+ FGPositioned(aGuid, aTy, aIdent, aGeod)
{
_heading = heading;
_length = length;
_width = width;
_surface_code = surface_code;
-
- init(index);
}
SGGeod FGRunwayBase::pointOnCenterline(double aOffset) const
return ((_surface_code == 1) || (_surface_code == 2));
}
-FGTaxiway::FGTaxiway(const string& aIdent,
+FGTaxiway::FGTaxiway(PositionedID aGuid,
+ const string& aIdent,
const SGGeod& aGeod,
const double heading, const double length,
const double width,
const int surface_code) :
- FGRunwayBase(TAXIWAY, aIdent, aGeod, heading, length, width, surface_code, false)
+ FGRunwayBase(aGuid, TAXIWAY, aIdent, aGeod, heading, length, width, surface_code)
{
}