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);
/** 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
*/