summaryrefslogtreecommitdiff
path: root/src/textparticle.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-23 13:43:17 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-23 13:43:17 +0000
commit4b8df221acc3bd3e681357df912bdbc7a1ce6c3f (patch)
tree3b3d196dcbeacc67b1479d56e3eccc14dfef07e1 /src/textparticle.h
parent4346b429cc875a85095fff271a8d82a46c2cfc91 (diff)
downloadmana-client-4b8df221acc3bd3e681357df912bdbc7a1ce6c3f.tar.gz
mana-client-4b8df221acc3bd3e681357df912bdbc7a1ce6c3f.tar.bz2
mana-client-4b8df221acc3bd3e681357df912bdbc7a1ce6c3f.tar.xz
mana-client-4b8df221acc3bd3e681357df912bdbc7a1ce6c3f.zip
Removed two useless popup related methods, used generic close button
functionality for the debug window and renamed Particle::mVector to Particle::mVelocity for clarity.
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..134405bb 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) (mPosY + mPosZ); }
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