Fixed levels on contribs menu.
[supertux.git] / src / player.h
index 13396ea..f995219 100644 (file)
@@ -40,6 +40,7 @@ class BadGuy;
 #define TUX_SAFE_TIME 1250
 #define TUX_INVINCIBLE_TIME 10000
 #define TUX_INVINCIBLE_TIME_WARNING 2000
+#define TUX_FLAPPING_TIME 1000 /* How long Tux can flap his wings to gain additional jump height */
 #define TIME_WARNING 20000     /* When to alert player they're low on time! */
 
 /* One-ups... */
@@ -49,7 +50,7 @@ class BadGuy;
 /* Scores: */
 
 #define SCORE_BRICK 5
-#define SCORE_DISTRO 25
+#define SCORE_DISTRO 20
 
 /* Sizes: */
 
@@ -110,6 +111,7 @@ public:
   ~TuxBodyParts() { };
 
   void set_action(std::string action);
+  void one_time_animation();
   void draw(DrawingContext& context, const Vector& pos, int layer,
                 Uint32 drawing_effect = NONE_EFFECT);
 
@@ -146,7 +148,10 @@ public:
   FallMode fall_mode;
 
   bool jumping;
+  bool flapping;
   bool can_jump;
+  bool can_flap;
+  bool enable_hover;
   bool butt_jump;
   int frame_;
   int frame_main;
@@ -160,6 +165,8 @@ public:
   Timer shooting_timer;   // used to show the arm when Tux is shooting
   Timer dying_timer;
   Timer growing_timer;
+  Timer idle_timer;
+  Timer flapping_timer;
   Physic physic;
   
 public: