X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fplayer.hpp;h=0a337692339d37bbaa124516b738e02ca93d6891;hb=8395f62affe250d02d320aabe939e18ca27982fc;hp=58f10419fe34847fec67e0d12ca5428f50e8c92a;hpb=b72c5d178e4cc95130735d8bf8716513c7cc28e1;p=supertux.git diff --git a/src/scripting/player.hpp b/src/scripting/player.hpp index 58f10419f..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,25 +31,40 @@ public: {} #endif -#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; /** + * Give tux more coins + */ + virtual void add_coins(int count) = 0; + /** * Make tux invicible for a short amount of time */ virtual void make_invincible() = 0; /** - * Give tux another life + * Deactivate user input for Tux */ - virtual void add_life() = 0; + virtual void deactivate() = 0; /** - * Give tux more coins + * Give control back to user */ - virtual void add_coins(int count) = 0; -#endif + 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; }; }