X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fplayer.hpp;h=a8f63b769c9d10851a19a49dc65b6f85b23ddf91;hb=c81b842f4880cd7b4958e03e983e50bff95d02ef;hp=92d15f8dc710f3b48aeb11b7ccd294ec0ed9ff9f;hpb=08ccb17345a52f5ffd8a5dd6ecf675cad55f16a7;p=supertux.git diff --git a/src/scripting/player.hpp b/src/scripting/player.hpp index 92d15f8dc..a8f63b769 100644 --- a/src/scripting/player.hpp +++ b/src/scripting/player.hpp @@ -1,12 +1,10 @@ -// $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 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 3 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 @@ -14,14 +12,16 @@ // 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. +// along with this program. If not, see . -#ifndef __SCRIPTING_PLAYER_H__ -#define __SCRIPTING_PLAYER_H__ +#ifndef HEADER_SUPERTUX_SCRIPTING_PLAYER_HPP +#define HEADER_SUPERTUX_SCRIPTING_PLAYER_HPP -namespace Scripting -{ +#ifndef SCRIPTING_API +#include +#endif + +namespace scripting { class Player { @@ -57,6 +57,10 @@ public: */ virtual void walk(float speed) = 0; /** + * Face Tux in the proper direction + */ + virtual void set_dir(bool right) = 0; + /** * Set player visible or invisible */ virtual void set_visible(bool visible) = 0; @@ -84,6 +88,11 @@ public: virtual bool get_ghost_mode() = 0; /** + * start kick animation + */ + virtual void kick() = 0; + + /** * play cheer animation. * This might need some space and behave in an unpredictable way. Best to use this at level end. */ @@ -122,7 +131,7 @@ public: virtual void use_scripting_controller(bool use_or_release) = 0; /** - * Instructs the scriptable controller to press or release a button + * Instructs the scriptable controller to press or release a button */ virtual void do_scripting_controller(std::string control, bool pressed) = 0; @@ -131,3 +140,5 @@ public: } #endif + +/* EOF */