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"
10 class FloatingImage : public GameObject
13 FloatingImage(const std::string& sprite);
14 virtual ~FloatingImage();
16 void set_layer(int layer) {
20 int get_layer() const {
24 void set_pos(const Vector& pos) {
27 const Vector& get_pos() const {
31 void set_anchor_point(AnchorPoint anchor) {
32 this->anchor = anchor;
34 AnchorPoint get_anchor_point() const {
38 void set_visible(bool visible) {
39 this->visible = visible;
41 bool get_visible() const {
45 void update(float elapsed_time);
46 void draw(DrawingContext& context);