if (index <= Engines.size()-1) return Engines[index];
else return 0L; }
+ // Retrieves the number of tanks defined for the aircraft.
+ inline unsigned int GetNumTanks(void) {return Tanks.size();}
+
/** Retrieves a tank object pointer from the list of tanks.
@param index the tank index within the vector container
@return the address of the specific tank, or zero if no such tank is
string GetPropulsionStrings(void);
string GetPropulsionValues(void);
- inline FGColumnVector3& GetForces(void) {return *Forces; }
- inline double GetForces(int n) { return (*Forces)(n);}
- inline FGColumnVector3& GetMoments(void) {return *Moments;}
- inline double GetMoments(int n) {return (*Moments)(n);}
+ inline FGColumnVector3& GetForces(void) {return vForces; }
+ inline double GetForces(int n) { return vForces(n);}
+ inline FGColumnVector3& GetMoments(void) {return vMoments;}
+ inline double GetMoments(int n) {return vMoments(n);}
FGColumnVector3& GetTanksCG(void);
double GetTanksWeight(void);
unsigned int numTanks;
unsigned int numThrusters;
double dt;
- FGColumnVector3 *Forces;
- FGColumnVector3 *Moments;
+ FGColumnVector3 vForces;
+ FGColumnVector3 vMoments;
FGColumnVector3 vXYZtank;
- void Debug(void);
+ void Debug(int from);
};
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%