#include <textparticle.h>

Definition at line 28 of file textparticle.h.
Public Member Functions | |
| TextParticle (Map *map, const std::string &text, const gcn::Color *color, gcn::Font *font, bool outline=false) | |
| Constructor. | |
| virtual void | draw (Graphics *graphics, int offsetX, int offsetY) const |
| Draws the particle image. | |
| virtual int | getPixelY () const |
| Necessary for sorting with the other sprites. | |
Private Attributes | |
| std::string | mText |
| Text of the particle. | |
| gcn::Font * | mTextFont |
| Font used for drawing the text. | |
| const gcn::Color * | mColor |
| Color used for drawing the text. | |
| bool | mOutline |
| Make the text better readable. | |
| TextParticle::TextParticle | ( | Map * | map, | |
| const std::string & | text, | |||
| const gcn::Color * | color, | |||
| gcn::Font * | font, | |||
| bool | outline = false | |||
| ) |
| void TextParticle::draw | ( | Graphics * | graphics, | |
| int | offsetX, | |||
| int | offsetY | |||
| ) | const [virtual] |
Draws the particle image.
Reimplemented from Particle.
Definition at line 39 of file textparticle.cpp.
| virtual int TextParticle::getPixelY | ( | ) | const [inline, virtual] |
Necessary for sorting with the other sprites.
Reimplemented from Particle.
Definition at line 44 of file textparticle.h.
std::string TextParticle::mText [private] |
gcn::Font* TextParticle::mTextFont [private] |
const gcn::Color* TextParticle::mColor [private] |
bool TextParticle::mOutline [private] |
1.5.5