diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-06 07:27:58 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-06 07:27:58 +0000 |
commit | b0bc59179bd64ad6b1f006f8e109cbeb16ad7094 (patch) | |
tree | 179a50164d79d12f5c14e4b7172a5f514d97b1f1 /src/being.h | |
parent | 323b0e57c673035ad8065c7daf399124f15c24d4 (diff) | |
download | mana-b0bc59179bd64ad6b1f006f8e109cbeb16ad7094.tar.gz mana-b0bc59179bd64ad6b1f006f8e109cbeb16ad7094.tar.bz2 mana-b0bc59179bd64ad6b1f006f8e109cbeb16ad7094.tar.xz mana-b0bc59179bd64ad6b1f006f8e109cbeb16ad7094.zip |
Unify some of the drawing code for beings.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h index edc25c09..9b6596e5 100644 --- a/src/being.h +++ b/src/being.h @@ -36,6 +36,7 @@ class Map; class Graphics; +class Spriteset; struct PATH_NODE { @@ -260,8 +261,8 @@ class Being : public Sprite * * @see Sprite::draw(Graphics, int, int) */ - void - draw(Graphics *graphics, Sint32 offsetX, Sint32 offsetY) {}; + virtual void + draw(Graphics *graphics, Sint32 offsetX, Sint32 offsetY); /** * Returns the pixel X coordinate. @@ -311,6 +312,9 @@ class Being : public Sprite Uint32 damage_time; bool showSpeech, showDamage; Sint32 mPx, mPy; /**< Pixel coordinates */ + + Spriteset *mSpriteset; + int mSpriteFrame; }; #endif |