summaryrefslogtreecommitdiff
path: root/src/textparticle.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-19 17:28:33 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-19 17:28:33 +0000
commit1a9320fafb23940d0463e6f384713d0f99fc0c61 (patch)
treed152680dbdc8febf0b5a445ba760255068d72f04 /src/textparticle.h
parent2f027ebcf8f0ad78f7edf58af7dda94d89034c85 (diff)
downloadMana-1a9320fafb23940d0463e6f384713d0f99fc0c61.tar.gz
Mana-1a9320fafb23940d0463e6f384713d0f99fc0c61.tar.bz2
Mana-1a9320fafb23940d0463e6f384713d0f99fc0c61.tar.xz
Mana-1a9320fafb23940d0463e6f384713d0f99fc0c61.zip
Merged 0.0 changes from revision 3362 to 3580 to trunk.
Diffstat (limited to 'src/textparticle.h')
-rw-r--r--src/textparticle.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/textparticle.h b/src/textparticle.h
index b365c885..34badb57 100644
--- a/src/textparticle.h
+++ b/src/textparticle.h
@@ -33,21 +33,26 @@
class TextParticle : public Particle
{
public:
+ /**
+ * Constructor.
+ */
TextParticle(Map *map, const std::string &text,
- int colorR, int colorG, int colorB, gcn::Font *font);
+ int colorR, int colorG, int colorB,
+ gcn::Font *font);
/**
- * Draws the particle image
+ * Draws the particle image.
*/
virtual void
draw(Graphics *graphics, int offsetX, int offsetY) const;
// hack to improve text visibility
- virtual int getPixelY() const { return (int)(mPosY + mPosZ); }
+ virtual int getPixelY() const
+ { return (int) (mPos.y + mPos.z); }
private:
- std::string mText; /**< Text of the particle */
- gcn::Font *mTextFont; /**< Font used for drawing the text */
- int mColorR, mColorG, mColorB; /**< Color used for drawing the text */
+ std::string mText; /**< Text of the particle. */
+ gcn::Font *mTextFont; /**< Font used for drawing the text. */
+ int mColorR, mColorG, mColorB; /**< Color used for drawing the text. */
};
#endif