X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fplayer.hpp;h=0a337692339d37bbaa124516b738e02ca93d6891;hb=8395f62affe250d02d320aabe939e18ca27982fc;hp=fee8f69ee099c1d51bd9ff06456ac863cf12dfc4;hpb=071c31e7fcf8bfbd00ec8d7d19313d7f6e433885;p=supertux.git diff --git a/src/scripting/player.hpp b/src/scripting/player.hpp index fee8f69ee..0a3376923 100644 --- a/src/scripting/player.hpp +++ b/src/scripting/player.hpp @@ -1,3 +1,22 @@ +// $Id$ +// +// SuperTux +// Copyright (C) 2006 Matthias Braun +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #ifndef __PLAYER_H__ #define __PLAYER_H__ @@ -12,21 +31,15 @@ public: {} #endif -#if 0 /** * Set tux bonus. * This can be "grow", "fireflower" or "iceflower" at the moment */ virtual void set_bonus(const std::string& bonus) = 0; /** - * Give tux another life - */ - virtual void add_life() = 0; - /** * Give tux more coins */ virtual void add_coins(int count) = 0; -#endif /** * Make tux invicible for a short amount of time */ @@ -43,6 +56,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; }; }