Don't die when main icon cannot be loaded
[supertux.git] / src / object / path_walker.hpp
index 0b8357f..831b191 100644 (file)
@@ -36,7 +36,7 @@ public:
   virtual ~PathWalker();
 
   /**
-   * advanves the path walker on the path and returns the position delta
+   * advances the path walker on the path and returns the position delta
    * to the last position
    */
   virtual Vector advance(float elapsed_time);
@@ -50,12 +50,17 @@ public:
   /** stop advancing automatically */
   void stop_moving();
 
+  /** returns true if PathWalker is currently moving */
+  bool is_moving() {
+    return running;
+  }
+  
   const Path* path;
 
 private:
   void advance_node();
   void goback_node();
+
   /**
    * set to false to immediately stop advancing
    */
@@ -69,8 +74,6 @@ private:
    */
   int stop_at_node_nr;
 
-  Vector last_pos;
-
   /**
    * the position between the current node and the next node as fraction
    * between 0 and 1