projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added missing includes to Squirrel and SuperTux to make -DENABLE_SQDBG=ON compile...
[supertux.git]
/
src
/
scripting
/
player.hpp
diff --git
a/src/scripting/player.hpp
b/src/scripting/player.hpp
index
5d0ed5c
..
3551f50
100644
(file)
--- a/
src/scripting/player.hpp
+++ b/
src/scripting/player.hpp
@@
-21,7
+21,7
@@
#include <string>
#endif
#include <string>
#endif
-namespace
S
cripting {
+namespace
s
cripting {
class Player
{
class Player
{
@@
-57,6
+57,10
@@
public:
*/
virtual void walk(float speed) = 0;
/**
*/
virtual void walk(float speed) = 0;
/**
+ * Face Tux in the proper direction
+ */
+ virtual void set_dir(bool right) = 0;
+ /**
* Set player visible or invisible
*/
virtual void set_visible(bool visible) = 0;
* Set player visible or invisible
*/
virtual void set_visible(bool visible) = 0;
@@
-84,6
+88,11
@@
public:
virtual bool get_ghost_mode() = 0;
/**
virtual bool get_ghost_mode() = 0;
/**
+ * start kick animation
+ */
+ virtual void kick() = 0;
+
+ /**
* play cheer animation.
* This might need some space and behave in an unpredictable way. Best to use this at level end.
*/
* play cheer animation.
* This might need some space and behave in an unpredictable way. Best to use this at level end.
*/