projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Add Airship (regular above-ground theme) and Battle (castle/boss theme) music court...
[supertux.git]
/
src
/
object
/
path_walker.hpp
diff --git
a/src/object/path_walker.hpp
b/src/object/path_walker.hpp
index
5bb3300
..
cc15320
100644
(file)
--- a/
src/object/path_walker.hpp
+++ b/
src/object/path_walker.hpp
@@
-21,10
+21,6
@@
#define __PATH_WALKER_HPP__
#include "path.hpp"
#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
/**
* A walker that travels along a path
@@
-36,7
+32,7
@@
public:
virtual ~PathWalker();
/**
virtual ~PathWalker();
/**
- * advan
v
es the path walker on the path and returns the position delta
+ * advan
c
es the path walker on the path and returns the position delta
* to the last position
*/
virtual Vector advance(float elapsed_time);
* to the last position
*/
virtual Vector advance(float elapsed_time);
@@
-50,12
+46,17
@@
public:
/** stop advancing automatically */
void stop_moving();
/** 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();
const Path* path;
private:
void advance_node();
void goback_node();
-
+
/**
* set to false to immediately stop advancing
*/
/**
* set to false to immediately stop advancing
*/