]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIEntity.hxx
Extract the sound code from FlightGear and move it to SimGear
[flightgear.git] / src / ATC / AIEntity.hxx
index f8ad8131a85f6941838b06829b59ed6abcaf358c..17c62b0c69fe523ed50b6531a39666ec3ccba998 100644 (file)
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-/*****************************************************************
-*
-* WARNING - Curt has some ideas about AI traffic so anything in here
-* may get rewritten or scrapped.  Contact Curt curt@flightgear.org 
-* before spending any time or effort on this code!!!
-*
-******************************************************************/
-
 #ifndef _FG_AIEntity_HXX
 #define _FG_AIEntity_HXX
 
-#include <Model/model.hxx>
 #include <plib/sg.h>
 #include <plib/ssg.h>
+
 #include <simgear/math/point3d.hxx>
 
+#include <Model/model.hxx>
+#include <Model/placement.hxx>
+
 
 /*****************************************************************
 *
@@ -47,21 +42,18 @@ class FGAIEntity {
 
 public:
 
-    // We need some way for this class to display its radio transmissions if on the 
-    // same frequency and in the vicinity of the user's aircraft
-    // This may need to be done independently of ATC eg CTAF
-
     virtual ~FGAIEntity();
 
     // Run the internal calculations
     virtual void Update(double dt);
+       
+       // Send a transmission *TO* the AIEntity.
+       // FIXME int code is a hack - eventually this will receive Alexander's coded messages.
+       virtual void RegisterTransmission(int code);
 
 protected:
 
     Point3D pos;       // WGS84 lat & lon in degrees, elev above sea-level in meters
-    //double lat;              //WGS84
-    //double lon;              //WGS84
-    //double elev;     //Meters
     double hdg;                //True heading in degrees
     double roll;       //degrees
     double pitch;      //degrees
@@ -69,15 +61,7 @@ protected:
     char* model_path;  //Path to the 3D model
     FGModelPlacement aip;
 
-    //ssgEntity* model;
-    //ssgTransform* position;
-
     void Transform();
-
-    //void WorldCoordinate(sgCoord *obj_pos, Point3D center);
-
-    //void FastWorldCoordinate(sgCoord *obj_pos, Point3D center);
-
 };
 
 #endif  // _FG_AIEntity_HXX