diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-07-11 12:58:11 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-07-11 12:58:11 +0000 |
commit | 84aafd27dad40f4033561052164c21fe68cf78ad (patch) | |
tree | 77fb9224634f95b1ede62c6605976feb4ee9455b /src/being.h | |
parent | 8dd7eef0402cc6e22642f045e3cfde7f5b011d5b (diff) | |
download | mana-84aafd27dad40f4033561052164c21fe68cf78ad.tar.gz mana-84aafd27dad40f4033561052164c21fe68cf78ad.tar.bz2 mana-84aafd27dad40f4033561052164c21fe68cf78ad.tar.xz mana-84aafd27dad40f4033561052164c21fe68cf78ad.zip |
Weapon sprites are now (almost) threated like other equipment sprites through the equipment sprite database. (use -u to ignore updates)
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 25 |
1 files changed, 3 insertions, 22 deletions
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; @@ -258,27 +259,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. */ Uint16 @@ -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; |