src/scripting/player.hpp

Go to the documentation of this file.
00001 //  SuperTux
00002 //  Copyright (C) 2006 Matthias Braun <matze@braunis.de>
00003 //
00004 //  This program is free software: you can redistribute it and/or modify
00005 //  it under the terms of the GNU General Public License as published by
00006 //  the Free Software Foundation, either version 3 of the License, or
00007 //  (at your option) any later version.
00008 //
00009 //  This program is distributed in the hope that it will be useful,
00010 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 //  GNU General Public License for more details.
00013 //
00014 //  You should have received a copy of the GNU General Public License
00015 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016 
00017 #ifndef HEADER_SUPERTUX_SCRIPTING_PLAYER_HPP
00018 #define HEADER_SUPERTUX_SCRIPTING_PLAYER_HPP
00019 
00020 #ifndef SCRIPTING_API
00021 #include <string>
00022 #endif
00023 
00024 namespace scripting {
00025 
00026 class Player
00027 {
00028 public:
00029 #ifndef SCRIPTING_API
00030   virtual ~Player()
00031   {}
00032 #endif
00033 
00038   virtual bool add_bonus(const std::string& bonus) = 0;
00042   virtual void add_coins(int count) = 0;
00046   virtual void make_invincible() = 0;
00050   virtual void deactivate() = 0;
00054   virtual void activate() = 0;
00058   virtual void walk(float speed) = 0;
00062   virtual void set_visible(bool visible) = 0;
00067   virtual bool get_visible() = 0;
00068 
00073   virtual void kill(bool completely) = 0;
00074 
00079   virtual void set_ghost_mode(bool enable) = 0;
00080 
00084   virtual bool get_ghost_mode() = 0;
00085 
00090   virtual void do_cheer() = 0;
00091 
00096   virtual void do_duck() = 0;
00097 
00101   virtual void do_standup() = 0;
00102 
00106   virtual void do_backflip() = 0;
00107 
00112   virtual void do_jump(float yspeed) = 0;
00113 
00117   virtual void trigger_sequence(std::string sequence_name) = 0;
00118 
00122   virtual void use_scripting_controller(bool use_or_release) = 0;
00123 
00127   virtual void do_scripting_controller(std::string control, bool pressed) = 0;
00128 
00129 };
00130 
00131 }
00132 
00133 #endif
00134 
00135 /* EOF */

Generated on Mon Jun 9 03:38:20 2014 for SuperTux by  doxygen 1.5.1