Tux grows faster, stops growing when hit
[supertux.git] / src / object / path_walker.hpp
index 5bb3300..829eca1 100644 (file)
@@ -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
    */