New powerups added to cheat menu
[supertux.git] / src / trigger / door.hpp
index 0e93611..6be119b 100644 (file)
@@ -18,6 +18,7 @@
 #define HEADER_SUPERTUX_TRIGGER_DOOR_HPP
 
 #include "sprite/sprite.hpp"
+#include "supertux/timer.hpp"
 #include "trigger/trigger_base.hpp"
 
 class Player;
@@ -46,7 +47,8 @@ private:
   DoorState state; /**< current state of the door */
   std::string target_sector; /**< target sector to teleport to */
   std::string target_spawnpoint; /**< target spawnpoint to teleport to */
-  std::auto_ptr<Sprite> sprite; /**< "door" sprite to render */
+  std::string script;
+  SpritePtr sprite; /**< "door" sprite to render */
   Timer stay_open_timer; /**< time until door will close again */
 };