From b0bc59179bd64ad6b1f006f8e109cbeb16ad7094 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Mon, 6 Feb 2006 07:27:58 +0000 Subject: Unify some of the drawing code for beings. --- src/being.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/being.h') 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 -- cgit v1.2.3-60-g2f50