diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-07-01 14:51:23 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-07-01 14:51:23 +0000 |
commit | d3ccf6a0b97ce4189eef4fde606cf5b5f93fac14 (patch) | |
tree | f4c4e5b1cc87b34d0a3946c3409882ba222e2ad7 /src/being.h | |
parent | 59c17d5f465ddcf1956e8cdf1aae1dbda0a1431f (diff) | |
download | mana-d3ccf6a0b97ce4189eef4fde606cf5b5f93fac14.tar.gz mana-d3ccf6a0b97ce4189eef4fde606cf5b5f93fac14.tar.bz2 mana-d3ccf6a0b97ce4189eef4fde606cf5b5f93fac14.tar.xz mana-d3ccf6a0b97ce4189eef4fde606cf5b5f93fac14.zip |
Ported some GUI improvements from Legend of Mazeroth (GUI skinning via XML files, item descriptions on mouse-over, map names in minimap window, speech bubbles)
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/being.h b/src/being.h index f4cdc743..9d04f383 100644 --- a/src/being.h +++ b/src/being.h @@ -44,6 +44,7 @@ class Map; class Graphics; class ImageSet; class Particle; +class SpeechBubble; /** * A position along a being's path. @@ -115,10 +116,10 @@ class Being : public Sprite Uint16 mX, mY; /**< Pixel coordinates of tile center */ Uint8 mEmotion; /**< Currently showing emotion */ Uint8 mEmotionTime; /**< Time until emotion disappears */ - Uint16 mAttackSpeed; /**< Attack speed */ + Uint16 mAttackSpeed; /**< Attack speed */ Uint16 mWalkTime; - Action mAction; /**< Action the being is performing */ - Uint16 mJob; /**< Job (player job, npc, monster, ) */ + Action mAction; /**< Action the being is performing */ + Uint16 mJob; /**< Job (player job, npc, monster, creature ) */ /** * Constructor. @@ -209,7 +210,7 @@ class Being : public Sprite * Draws the speech text above the being. */ void - drawSpeech(Graphics *graphics, int offsetX, int offsetY); + drawSpeech(Graphics* graphics, int offsetX, int offsetY); /** * Draws the emotion picture above the being. @@ -389,8 +390,10 @@ class Being : public Sprite std::list<Particle *> mChildParticleEffects; private: - int - getOffset(int step) const; + int getOffset(int step) const; + + // Speech Bubble components + SpeechBubble *mSpeechBubble; Sint16 mStepX, mStepY; Uint16 mStepTime; |