1 #ifndef __TEXTOBJECT_H__
2 #define __TEXTOBJECT_H__
4 #include "game_object.hpp"
5 #include "scripting/text.hpp"
9 /** A text object intended for scripts that want to tell a story */
10 class TextObject : public GameObject, public Scripting::Text
14 virtual ~TextObject();
16 void set_text(const std::string& text);
17 void set_font(const std::string& name);
18 void fade_in(float fadetime);
19 void fade_out(float fadetime);
20 void set_visible(bool visible);
21 void set_centered(bool centered);
24 void draw(DrawingContext& context);
25 void update(float elapsed_time);