X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fplayer.hpp;h=5796524631928db06c97a5651ca921fd69608d87;hb=e676ae58790755b5e337c411bc8a08a97c12d51c;hp=58f10419fe34847fec67e0d12ca5428f50e8c92a;hpb=b72c5d178e4cc95130735d8bf8716513c7cc28e1;p=supertux.git diff --git a/src/scripting/player.hpp b/src/scripting/player.hpp index 58f10419f..579652463 100644 --- a/src/scripting/player.hpp +++ b/src/scripting/player.hpp @@ -15,14 +15,10 @@ public: #if 0 /** * Set tux bonus. - * This can be "grow", "fireflow" or "iceflower" at the moment + * This can be "grow", "fireflower" or "iceflower" at the moment */ virtual void set_bonus(const std::string& bonus) = 0; /** - * Make tux invicible for a short amount of time - */ - virtual void make_invincible() = 0; - /** * Give tux another life */ virtual void add_life() = 0; @@ -31,6 +27,31 @@ public: */ virtual void add_coins(int count) = 0; #endif + /** + * Make tux invicible for a short amount of time + */ + virtual void make_invincible() = 0; + /** + * Deactivate user input for Tux + */ + virtual void deactivate() = 0; + /** + * Give control back to user + */ + virtual void activate() = 0; + /** + * Make Tux walk + */ + virtual void walk(float speed) = 0; + /** + * Set player visible or not visible + */ + virtual void set_visible(bool visible) = 0; + /** + * returns true if the player is currently visible (that is he was not set + * inivisible by the set_visible method) + */ + virtual bool get_visible() = 0; }; }