fix menu width, didn't committ the tileset fix, miscelaneous small fixes
[supertux.git] / src / scripting / player.hpp
1 #ifndef __PLAYER_H__
2 #define __PLAYER_H__
3
4 namespace Scripting
5 {
6
7 class Player
8 {
9 public:
10 #ifndef SCRIPTING_API
11   virtual ~Player()
12   {}
13 #endif
14
15   /**
16    * Set tux bonus.
17    * This can be "grow", "fireflower" or "iceflower" at the moment
18    */
19   virtual void set_bonus(const std::string& bonus) = 0;
20   /**
21    * Give tux more coins
22    */
23   virtual void add_coins(int count) = 0;
24   /**
25    * Make tux invicible for a short amount of time
26    */
27   virtual void make_invincible() = 0;
28   /**
29    * Deactivate user input for Tux
30    */
31   virtual void deactivate() = 0;
32   /**
33    * Give control back to user
34    */
35   virtual void activate() = 0;
36   /**
37    * Make Tux walk
38    */
39   virtual void walk(float speed) = 0;
40   /**
41    * Set player visible or not visible
42    */
43   virtual void set_visible(bool visible) = 0;
44   /**
45    * returns true if the player is currently visible (that is he was not set
46    * inivisible by the set_visible method)
47    */
48   virtual bool get_visible() = 0;
49 };
50
51 }
52
53 #endif
54