]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIScenario.hxx
MSVC fix.
[flightgear.git] / src / AIModel / AIScenario.hxx
index 8d1c6b549082d27d0994f152907d7eb56fc83b09..a6b46ccc2eface07c88be12f7224be68779dc8f3 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,37 +34,15 @@ class FGAIScenario {
 
 public:
 
-  typedef struct {
-   string callsign;
-   string aitype;       // can be aircraft, ship, storm, thermal
-   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
-  } entry;
-
-   FGAIScenario(string filename);
+   FGAIScenario(const string &filename);
    ~FGAIScenario();
 
-   entry* getNextEntry( void );
+   FGAIModelEntity* getNextEntry( void );
    int nEntries( void );
 
 private:
 
-    typedef vector <entry*> entry_vector_type;
+    typedef vector <FGAIModelEntity*> entry_vector_type;
     typedef entry_vector_type::iterator entry_vector_iterator;
 
     entry_vector_type       entries;