Addded property to Worldmap Spawnpoint to let Tux automatically start walking (or...
[supertux.git] / src / object / player.hpp
index bfe1ba1..2f21f6d 100644 (file)
@@ -122,7 +122,7 @@ public:
   Physic physic;
 
 public:
-  Player(PlayerStatus* player_status, std::string name = "");
+  Player(PlayerStatus* player_status, const std::string& name);
   virtual ~Player();
 
   virtual void expose(HSQUIRRELVM vm, SQInteger table_idx);
@@ -278,7 +278,10 @@ private:
   Sprite* smalltux_star;
   Sprite* bigtux_star;
 
+  std::auto_ptr<Surface> airarrow; /**< arrow indicating Tux' position when he's above the camera */
+
   Vector floor_normal;
+  void try_grab();
 
   bool ghost_mode; /**< indicates if Tux should float around and through solid objects */