X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fplayer.hpp;h=431573c33f0c032ecb5198656175cb9149794494;hb=c3c41a343669d375aaa674c7f3ac35f08f24703e;hp=8b36aa7f5160e5e78c6fb3b71d374f0a1545baed;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/scripting/player.hpp b/src/scripting/player.hpp index 8b36aa7f5..431573c33 100644 --- a/src/scripting/player.hpp +++ b/src/scripting/player.hpp @@ -111,6 +111,20 @@ public: */ virtual void do_jump(float yspeed) = 0; + /** + * Orders the current GameSession to start a sequence + */ + virtual void trigger_sequence(std::string sequence_name) = 0; + + /** + * Uses a scriptable controller for all user input (or restores controls) + */ + virtual void use_scripting_controller(bool use_or_release) = 0; + + /** + * Instructs the scriptable controller to press or release a button + */ + virtual void do_scripting_controller(std::string control, bool pressed) = 0; };