Updated addon repository URL and improved debug output on download
[supertux.git] / src / worldmap / teleporter.hpp
index 0ab3d25..f0fa176 100644 (file)
 #include <memory>
 #include <string>
 
-#include "lisp/lisp.hpp"
 #include "math/vector.hpp"
 #include "supertux/game_object.hpp"
+#include "util/reader_fwd.hpp"
 
 class Sprite;
 
-namespace WorldMapNS {
+namespace worldmap {
 
 class Teleporter : public GameObject
 {
 public:
-  Teleporter(const lisp::Lisp* lisp);
+  Teleporter(const Reader& lisp);
 
   virtual void draw(DrawingContext& context);
   virtual void update(float elapsed_time);
@@ -41,7 +41,7 @@ public:
   Vector pos;
 
   /** Sprite to render, or 0 for no sprite */
-  std::auto_ptr<Sprite> sprite;
+  SpritePtr sprite;
 
   /** Worldmap filename (relative to data root) to teleport to. Leave empty to use current word */
   std::string worldmap;
@@ -56,7 +56,7 @@ public:
   std::string message;
 };
 
-} // namespace WorldMapNS
+} // namespace worldmap
 
 #endif