#include "FGTrim.h"
#include "FGInitialCondition.h"
#include "FGJSBBase.h"
+#include "FGGroundCallback.h"
#include "FGPropertyManager.h"
+#include "FGPropagate.h"
#include <vector>
/// Resumes the sim
void Resume(void) {frozen = false;}
+ void SetGroundCallback(FGGroundCallback*);
+
/** Loads an aircraft model.
@param AircraftPath path to the aircraft directory. For instance:
"aircraft". Under aircraft, then, would be directories for various
be looked for in the directory specified in the AircraftPath variable,
and in turn under the directory with the same name as the model. For
instance: "aircraft/x15/x15.xml"
+ @param addModelToPath set to true to add the model name to the
+ AircraftPath, defaults to true
@return true if successful*/
- bool LoadModel(string AircraftPath, string EnginePath, string model);
+ bool LoadModel(string AircraftPath, string EnginePath, string model,
+ bool addModelToPath = true);
/** Loads an aircraft model. The paths to the aircraft and engine
be looked for in the directory specified in the AircraftPath variable,
and in turn under the directory with the same name as the model. For
instance: "aircraft/x15/x15.xml"
+ @param addModelToPath set to true to add the model name to the
+ AircraftPath, defaults to true
@return true if successful*/
- bool LoadModel(string model);
+ bool LoadModel(string model, bool addModelToPath = true);
/** Sets the path to the engine config file directories.
inline FGAtmosphere* GetAtmosphere(void) {return Atmosphere;}
/// Returns the FGFCS pointer.
inline FGFCS* GetFCS(void) {return FCS;}
+ /// Returns the FGGroundCallback pointer.
+ inline FGGroundCallback* GetGroundCallback(void) {return GroundCallback;}
/// Returns the FGPropulsion pointer.
inline FGPropulsion* GetPropulsion(void) {return Propulsion;}
/// Returns the FGAircraft pointer.
/// Returns the FGAircraft pointer.
inline FGAircraft* GetAircraft(void) {return Aircraft;}
/// Returns the FGPropagate pointer.
- inline FGPropagate* GetPropagate(void) {return Propagate;}
+ inline FGPropagate* GetPropagate(void) {return Propagate;}
/// Returns the FGAuxiliary pointer.
inline FGAuxiliary* GetAuxiliary(void) {return Auxiliary;}
/// Returns the FGOutput pointer.
FGState* State;
FGAtmosphere* Atmosphere;
FGFCS* FCS;
+ FGGroundCallback* GroundCallback;
FGPropulsion* Propulsion;
FGMassBalance* MassBalance;
FGAerodynamics* Aerodynamics;