If player is at illegal position on worldmap, "action" respawns at "main".
[supertux.git] / src / worldmap / teleporter.hpp
index 243b36a..0e5cff3 100644 (file)
@@ -40,7 +40,7 @@ public:
 
   /** Position (in tiles, not pixels) */
   Vector pos;
-  
+
   /** Sprite to render, or 0 for no sprite */
   std::auto_ptr<Sprite> sprite;
 
@@ -50,12 +50,14 @@ public:
   /** Spawnpoint to teleport to. Leave empty to use "main" or last one */
   std::string spawnpoint;
 
-  /** true if this teleporter needs to be activated */
-  bool interactive;
+  /** true if this teleporter does not need to be activated, but teleports Tux as soon as it's touched */
+  bool automatic;
+
+  /** optional map message to display */
+  std::string message;
 
 };
 
 }
 
 #endif
-