X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fpath_walker.hpp;h=cc153206b1db37996642c8c94571ffc3f8b0eb66;hb=75acd4b141f45e851a492f089aa9ad24a9552409;hp=f3bdf9e6e94818cfe6a4e8c5e3e94052feb39448;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/object/path_walker.hpp b/src/object/path_walker.hpp index f3bdf9e6e..cc153206b 100644 --- a/src/object/path_walker.hpp +++ b/src/object/path_walker.hpp @@ -21,10 +21,6 @@ #define __PATH_WALKER_HPP__ #include "path.hpp" -#include "math/vector.hpp" -#include "game_object.hpp" -#include "lisp/lisp.hpp" -#include "serializable.hpp" /** * A walker that travels along a path @@ -36,7 +32,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 +46,11 @@ public: /** stop advancing automatically */ void stop_moving(); + /** returns true if PathWalker is currently moving */ + bool is_moving() { + return running; + } + const Path* path; private: