Calculate foremost layer correctly (previous implementation didn't work at all)
[supertux.git] / src / object / player.hpp
index 3de1abd..4d178aa 100644 (file)
@@ -180,6 +180,8 @@ public:
   bool is_dead() const
   { return dead; }
   bool is_big();
+  bool is_stone()
+  { return stone; }
 
   void set_visible(bool visible);
   bool get_visible();
@@ -274,7 +276,7 @@ private:
   int  backflip_direction;
   Direction peekingX;
   Direction peekingY;
-  float glide_time;
+  float ability_time;
   bool stone;
   bool swimming;
   float speedlimit;
@@ -283,6 +285,7 @@ private:
   bool on_ice;
   bool ice_this_frame;
   SpritePtr lightsprite;
+  SpritePtr powersprite;
 
 public:
   Direction dir;