Updated addon repository URL and improved debug output on download
[supertux.git] / src / object / floating_image.hpp
index 40b7d4c..eb8c6e1 100644 (file)
@@ -18,8 +18,8 @@
 #define HEADER_SUPERTUX_OBJECT_FLOATING_IMAGE_HPP
 
 #include "object/anchor_point.hpp"
+#include "sprite/sprite_ptr.hpp"
 #include "supertux/game_object.hpp"
-#include <memory>
 
 class Sprite;
 
@@ -29,30 +29,30 @@ public:
   FloatingImage(const std::string& sprite);
   virtual ~FloatingImage();
 
-  void set_layer(int layer) {
-    this->layer = layer;
+  void set_layer(int layer_) {
+    this->layer = layer_;
   }
 
   int get_layer() const {
     return layer;
   }
 
-  void set_pos(const Vector& pos) {
-    this->pos = pos;
+  void set_pos(const Vector& pos_) {
+    this->pos = pos_;
   }
   const Vector& get_pos() const {
     return pos;
   }
 
-  void set_anchor_point(AnchorPoint anchor) {
-    this->anchor = anchor;
+  void set_anchor_point(AnchorPoint anchor_) {
+    this->anchor = anchor_;
   }
   AnchorPoint get_anchor_point() const {
     return anchor;
   }
 
-  void set_visible(bool visible) {
-    this->visible = visible;
+  void set_visible(bool visible_) {
+    this->visible = visible_;
   }
   bool get_visible() const {
     return visible;
@@ -68,7 +68,7 @@ public:
   void draw(DrawingContext& context);
 
 private:
-  std::auto_ptr<Sprite> sprite;
+  SpritePtr sprite;
   int layer;
   bool visible;
   AnchorPoint anchor;