X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ffloating_image.hpp;h=68d82f0561703680ebadcd431e83dca7c086a2e0;hb=8e38c01a8c4f2937c3f53d46d3034b0f55ba4316;hp=42dcf365f2f3c50e4e66f0460dceabfad9a2d83e;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/scripting/floating_image.hpp b/src/scripting/floating_image.hpp index 42dcf365f..68d82f056 100644 --- a/src/scripting/floating_image.hpp +++ b/src/scripting/floating_image.hpp @@ -23,6 +23,7 @@ #ifndef SCRIPTING_API #define __suspend #include +#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 };