]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBase.hxx
Roy Vegard Ovesen:
[flightgear.git] / src / AIModel / AIBase.hxx
index 63e0128fe0c8801fa6deed41b4382384dc71973c..44ebd61e83559af3fe0d4de1d303bde93bb996ed 100644 (file)
@@ -41,6 +41,9 @@ public:
     virtual void update(double dt);
     inline Point3D GetPos() { return(pos); }
 
+    enum object_type { otNull, otAircraft, otShip, otBallistic,
+                       otRocket, otStorm, otThermal };
+
     virtual bool init();
     virtual void bind();
     virtual void unbind();
@@ -97,11 +100,13 @@ protected:
     SGModelPlacement aip;
     bool delete_me;
     int id;
+    bool invisible;
 
     void Transform();
 
     static FGAIBase *_self;
     const char *_type_str;
+    object_type _otype;
 
 public:
 
@@ -128,6 +133,7 @@ public:
     static double _getRotation();
 
     static bool _isNight();
+    bool isa( object_type otype );
 };