TextParticle Class Reference

#include <textparticle.h>

Inheritance diagram for TextParticle:

Particle Sprite

List of all members.


Detailed Description

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.

Constructor & Destructor Documentation

TextParticle::TextParticle ( Map map,
const std::string &  text,
const gcn::Color *  color,
gcn::Font *  font,
bool  outline = false 
)

Constructor.

Definition at line 28 of file textparticle.cpp.


Member Function Documentation

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.


Member Data Documentation

std::string TextParticle::mText [private]

Text of the particle.

Definition at line 48 of file textparticle.h.

gcn::Font* TextParticle::mTextFont [private]

Font used for drawing the text.

Definition at line 49 of file textparticle.h.

const gcn::Color* TextParticle::mColor [private]

Color used for drawing the text.

Definition at line 50 of file textparticle.h.

bool TextParticle::mOutline [private]

Make the text better readable.

Definition at line 51 of file textparticle.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5