X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fplayer.hpp;h=a8f63b769c9d10851a19a49dc65b6f85b23ddf91;hb=c81b842f4880cd7b4958e03e983e50bff95d02ef;hp=5d0ed5ca6d951e7eb58a50f88a40003e75b45744;hpb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;p=supertux.git diff --git a/src/scripting/player.hpp b/src/scripting/player.hpp index 5d0ed5ca6..a8f63b769 100644 --- a/src/scripting/player.hpp +++ b/src/scripting/player.hpp @@ -21,7 +21,7 @@ #include #endif -namespace Scripting { +namespace scripting { class Player { @@ -57,6 +57,10 @@ public: */ 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; @@ -84,6 +88,11 @@ public: 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. */ @@ -122,7 +131,7 @@ public: virtual void use_scripting_controller(bool use_or_release) = 0; /** - * Instructs the scriptable controller to press or release a button + * Instructs the scriptable controller to press or release a button */ virtual void do_scripting_controller(std::string control, bool pressed) = 0;