]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/route_mgr.hxx
Cleanup, no functional change
[flightgear.git] / src / Autopilot / route_mgr.hxx
index b66a06b72f4cb697a4113c1f66c0083378a0a045..696d43d618854f965fb24b4cb2889375e72a7fbe 100644 (file)
@@ -55,8 +55,8 @@ public:
          
   int currentIndex() const;
   
-  void setFlightPlan(flightgear::FlightPlan* plan);
-  flightgear::FlightPlan* flightPlan() const;
+  void setFlightPlan(const flightgear::FlightPlanRef& plan);
+  flightgear::FlightPlanRef flightPlan() const;
   
   void clearRoute();
   
@@ -90,11 +90,6 @@ public:
    */
   void deactivate();
 
-  /**
-   * Step to the next waypoint on the active route
-   */
-  void sequence();
-  
   /**
    * Set the current waypoint to the specified index.
    */
@@ -104,14 +99,12 @@ public:
   bool loadRoute(const SGPath& p);
   
   flightgear::WayptRef waypointFromString(const std::string& target);
-  
-  /**
-   * Helper command to setup current airport/runway if necessary
-   */
-  void initAtPosition();
 
 private:
-    flightgear::FlightPlan* _plan;
+    bool commandDefineUserWaypoint(const SGPropertyNode* arg);
+    bool commandDeleteUserWaypoint(const SGPropertyNode* arg);
+    
+    flightgear::FlightPlanRef _plan;
   
     time_t _takeoffTime;
     time_t _touchdownTime;
@@ -188,23 +181,6 @@ private:
     
     virtual void currentWaypointChanged();
     
-    /**
-     * Check if we've reached the final waypoint. 
-     * Returns true if we have.
-     */
-    bool checkFinished();
-    
-    /*
-     * update state when we pass the final waypoint
-     */
-    void endOfRoute();
-    
-    /**
-     * Predicate for helping the UI - test if at least one waypoint was
-     * entered by the user (as opposed to being generated by the route-manager)
-     */
-    bool haveUserWaypoints() const;
-    
 // tied getters and setters
     const char* getDepartureICAO() const;
     const char* getDepartureName() const;