Disable acceleration in kill_fall().
[supertux.git] / src / object / path_walker.hpp
index f3bdf9e..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,6 +50,11 @@ public:
   /** stop advancing automatically */
   void stop_moving();
 
+  /** returns true if PathWalker is currently moving */
+  bool is_moving() {
+    return running;
+  }
+  
   const Path* path;
 
 private: