X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fplayer.hpp;h=5796524631928db06c97a5651ca921fd69608d87;hb=e676ae58790755b5e337c411bc8a08a97c12d51c;hp=fee8f69ee099c1d51bd9ff06456ac863cf12dfc4;hpb=071c31e7fcf8bfbd00ec8d7d19313d7f6e433885;p=supertux.git diff --git a/src/scripting/player.hpp b/src/scripting/player.hpp index fee8f69ee..579652463 100644 --- a/src/scripting/player.hpp +++ b/src/scripting/player.hpp @@ -43,6 +43,15 @@ public: * 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; }; }