]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIShip.hxx
Fix line endings
[flightgear.git] / src / AIModel / AIShip.hxx
index 69e446df03d6406013154006f952dab2965f3680..67c883cb64142d82a69b6956a25b230e1988ebf5 100644 (file)
@@ -28,13 +28,15 @@ class FGAIShip : public FGAIBase {
        
 public:
        
-       FGAIShip(FGAIManager* mgr);
-       ~FGAIShip();
+        FGAIShip(object_type ot = otShip);
+       virtual ~FGAIShip();
        
-       bool init();
+        virtual void readFromScenario(SGPropertyNode* scFileNode);
+
+       virtual bool init();
         virtual void bind();
         virtual void unbind();
-       void update(double dt);
+       virtual void update(double dt);
         void setFlightPlan(FGAIFlightPlan* f);
         void setName(const string&);
         void setRudder(float r);
@@ -49,6 +51,8 @@ public:
         void ClimbTo(double altitude);
         void TurnTo(double heading);
            bool hdg_lock;
+
+        virtual const char* getTypeString(void) const { return "ship"; }
        
 protected: