1 #ifndef __FLOATING_IMAGE_H__
2 #define __FLOATING_IMAGE_H__
4 #include "game_object.hpp"
5 #include "math/vector.hpp"
6 #include "anchor_point.hpp"
11 class FloatingImage : public GameObject
14 FloatingImage(const std::string& sprite);
15 virtual ~FloatingImage();
17 void set_layer(int layer) {
21 int get_layer() const {
25 void set_pos(const Vector& pos) {
28 const Vector& get_pos() const {
32 void set_anchor_point(AnchorPoint anchor) {
33 this->anchor = anchor;
35 AnchorPoint get_anchor_point() const {
39 void set_visible(bool visible) {
40 this->visible = visible;
42 bool get_visible() const {
46 void update(float elapsed_time);
47 void draw(DrawingContext& context);
50 std::auto_ptr<Sprite> sprite;