make GameObjects reference counted (this avoids crashs when scripts hold reference...
[supertux.git] / src / scripting / floating_image.hpp
index 42dcf36..68d82f0 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef SCRIPTING_API
 #define __suspend
 #include <string>
+#include "ref.hpp"
 
 class FloatingImage;
 typedef FloatingImage _FloatingImage;
@@ -46,10 +47,12 @@ public:
   int get_anchor_point();
   void set_visible(bool visible);
   bool get_visible();
+  void set_action(const std::string& action);
+  std::string get_action();
   
 #ifndef SCRIPTING_API
 private:
-  _FloatingImage* floating_image;
+  Ref<_FloatingImage> floating_image;
 #endif
 };