Tux can peek to the left and to the right as far as the camera would move in best...
[supertux.git] / src / object / player.hpp
index 1f69640..b7fb3ac 100644 (file)
@@ -95,6 +95,7 @@ private:
   bool dying;
   bool backflipping;
   int  backflip_direction;
+  Direction peeking;
   
 public:
   Direction dir;
@@ -146,6 +147,10 @@ public:
   {
     return dying;
   }
+  Direction peeking_direction() const
+  {
+    return peeking;
+  }
   
   void kill(bool completely);
   void check_bounds(Camera* camera);