]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIScenario.hxx
David Culp:
[flightgear.git] / src / AIModel / AIScenario.hxx
index cb798f093b29553541dbda97b1856e4e55ef1323..992f30bb1a1c34f9b978289a4331b653ed5a3922 100644 (file)
 #define _FG_AISCENARIO_HXX
 
 #include <simgear/compiler.h>
+
 #include <vector>
 #include <string>
+
+#include "AIBase.hxx"
+
 SG_USING_STD(vector);
 SG_USING_STD(string);
 
@@ -30,39 +34,16 @@ class FGAIScenario {
 
 public:
 
-  typedef struct {
-   string callsign;
-   string aitype;       // can be aircraft, ship, storm, thermal, ballistic, smoke
-   string aircraft_class;
-   string model_path;
-   string flightplan;
-   double repeat;       // in seconds
-   double latitude;     // used if no flightplan defined
-   double longitude;    // used if no flightplan defined
-   double altitude;     // used if no flightplan defined
-   double speed;        // used if no flightplan defined
-   double heading;      // used if no flightplan defined
-   double roll;         // used if no flightplan defined
-   double azimuth;      // used by ballistic objects
-   double elevation;    // used by ballistic objects
-   double rudder;       // used by ship objects 
-   double strength;     // used by thermal objects
-   double diameter;     // used by thermal objects
-   double eda;          // used by ballistic objects
-   double life;         // life span in seconds
-   double buoyancy;     // acceleration in ft per sec2
-  } entry;
-
-   FGAIScenario(string filename);
+   FGAIScenario(const string &filename);
    ~FGAIScenario();
 
-   entry* getNextEntry( void );
+   FGAIModelEntity* const getNextEntry( void );
    int nEntries( void );
 
 private:
 
-    typedef vector <entry*> entry_vector_type;
-    typedef entry_vector_type::iterator entry_vector_iterator;
+    typedef vector <FGAIModelEntity*> entry_vector_type;
+    typedef entry_vector_type::const_iterator entry_vector_iterator;
 
     entry_vector_type       entries;
     entry_vector_iterator   entry_iterator;