void draw(gcn::Graphics *graphics, int xOff, int yOff) override
Draws the text.
void moveText(Text *text, int x, int y)
Move the text around the screen.
void removeText(const Text *text)
Remove the text from the manager.
Text(const std::string &text, int x, int y, gcn::Graphics::Alignment alignment, const gcn::Color *color, bool isSpeech=false, gcn::Font *font=nullptr)
Constructor creates a text object to display on the screen.
int mXOffset
The offset of mX from the desired x.
const gcn::Color * mColor
The color of the text.
bool mIsSpeech
Is this text a speech bubble?
int mX
Actual x-value of left of text written.
void setColor(const gcn::Color *color)
void adviseXY(int x, int y)
Allows the originator of the text to specify the ideal coordinates.
int mY
Actual y-value of top of text written.
virtual void draw(gcn::Graphics *graphics, int xOff, int yOff)
Draws the text.
TextManager * textManager