fix cr/lfs and remove trailing whitespaces...
[supertux.git] / src / object / floating_image.cpp
index 4dc8c6a..5798784 100644 (file)
@@ -29,7 +29,7 @@
 #include "lisp/lisp.hpp"
 #include "floating_image.hpp"
 
-FloatingImage::FloatingImage(const std::string& spritefile) 
+FloatingImage::FloatingImage(const std::string& spritefile)
   : layer(LAYER_FOREGROUND1 + 1), visible(false), anchor(ANCHOR_MIDDLE)
 {
   sprite.reset(sprite_manager->create(spritefile));
@@ -46,6 +46,18 @@ FloatingImage::update(float elapsed_time)
 }
 
 void
+FloatingImage::set_action(const std::string& action)
+{
+  sprite->set_action(action);
+}
+
+std::string
+FloatingImage::get_action()
+{
+  return sprite->get_action();
+}
+
+void
 FloatingImage::draw(DrawingContext& context)
 {
   if(!visible)