00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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