From 4b8df221acc3bd3e681357df912bdbc7a1ce6c3f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 23 Aug 2007 13:43:17 +0000 Subject: Removed two useless popup related methods, used generic close button functionality for the debug window and renamed Particle::mVector to Particle::mVelocity for clarity. --- src/textparticle.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/textparticle.h') 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 -- cgit v1.2.3-70-g09d2