+/**
+ * Helper class for InfoBox: Represents a line of text
+ */
+class InfoBoxLine
+{
+private:
+ enum LineType { NORMAL, NORMAL_LEFT, SMALL, HEADING, REFERENCE, IMAGE};
+ LineType lineType;
+ Font* font;
+ std::string text;
+ Surface* image;
+
+public:
+ InfoBoxLine(char format_char, const std::string& text);
+ ~InfoBoxLine();
+
+ void draw(DrawingContext& context, const Vector& position, int layer);
+ float get_height();
+
+ static const std::vector<InfoBoxLine*> split(const std::string& text, int line_length);
+};
+