3 #include "floating_image.hpp"
5 #include "object/floating_image.hpp"
10 FloatingImage::FloatingImage(const std::string& spritefile)
12 floating_image = new _FloatingImage(spritefile);
13 Sector::current()->add_object(floating_image);
16 FloatingImage::~FloatingImage()
18 floating_image->remove_me();
19 // no delete here, Sector will do that
23 FloatingImage::set_layer(int layer)
25 floating_image->set_layer(layer);
29 FloatingImage::get_layer()
31 return floating_image->get_layer();
35 FloatingImage::set_pos(float x, float y)
37 floating_image->set_pos(Vector(x, y));
41 FloatingImage::get_pos_x()
43 return floating_image->get_pos().x;
47 FloatingImage::get_pos_y()
49 return floating_image->get_pos().y;
53 FloatingImage::set_anchor_point(int anchor)
55 floating_image->set_anchor_point((AnchorPoint) anchor);
59 FloatingImage::get_anchor_point()
61 return (int) floating_image->get_anchor_point();
65 FloatingImage::get_visible()
67 return floating_image->get_visible();
71 FloatingImage::set_visible(bool visible)
73 floating_image->set_visible(visible);