From 84aafd27dad40f4033561052164c21fe68cf78ad Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Wed, 11 Jul 2007 12:58:11 +0000 Subject: Weapon sprites are now (almost) threated like other equipment sprites through the equipment sprite database. (use -u to ignore updates) --- src/being.h | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index cdae05dc..f0c263b0 100644 --- a/src/being.h +++ b/src/being.h @@ -38,6 +38,7 @@ class AnimatedSprite; class Equipment; +class EquipmentInfo; class Item; class Map; class Graphics; @@ -257,27 +258,6 @@ class Being : public Sprite */ virtual Type getType() const; - /** - * Gets the weapon picture id. - */ - Uint16 getWeapon() const { return mWeapon; } - - /** - * Sets the weapon picture id. - * - * @param weapon the picture id - */ - virtual void - setWeapon(Uint16 weapon) { mWeapon = weapon; } - - /** - * Sets the weapon picture id with the weapon id. - * - * @param weapon the weapon id - */ - void - setWeaponById(Uint16 weapon); - /** * Gets the walk speed. */ @@ -404,13 +384,14 @@ class Being : public Sprite getSpriteDirection() const; Uint32 mId; /**< Unique sprite id */ - Uint16 mWeapon; /**< Weapon picture id */ Uint16 mWalkSpeed; /**< Walking speed */ Uint8 mDirection; /**< Facing direction */ Map *mMap; /**< Map on which this being resides */ std::string mName; /**< Name of character */ SpriteIterator mSpriteIterator; + EquipmentInfo* mEquippedWeapon; /**< Engine-related infos about weapon */ + Path mPath; std::string mSpeech; Uint16 mHairStyle, mHairColor; -- cgit v1.2.3-70-g09d2