From 54ac35bc5a1484757efeae9b342469b9a00fe2a2 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Thu, 18 Oct 2007 19:00:38 +0000 Subject: Removed player looks from generic beings. Prevented client termination on missing sprites. Merged weapon-type and attack-type fields for items. --- src/being.h | 50 +------------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index fadf9656..fd17caf5 100644 --- a/src/being.h +++ b/src/being.h @@ -68,7 +68,6 @@ class Being : public Sprite public: enum Type { UNKNOWN, - LOCALPLAYER, PLAYER, NPC, MONSTER @@ -125,7 +124,7 @@ class Being : public Sprite /** * Constructor. */ - Being(Uint16 id, Uint16 job, Map *map); + Being(int id, int job, Map *map); /** * Destructor. @@ -189,48 +188,6 @@ class Being : public Sprite void setName(const std::string &name) { mName = name; } - /** - * Sets the hair color for this being. - */ - virtual void - setHairColor(Uint16 color); - - /** - * Gets the hair color for this being. - */ - Uint16 - getHairColor() const { return mHairColor; } - - /** - * Sets the hair style for this being. - */ - virtual void - setHairStyle(Uint16 style); - - /** - * Gets the hair style for this being. - */ - Uint16 - getHairStyle() const { return mHairStyle; } - - /** - * Sets visible equipments for this being. - */ - virtual void - setVisibleEquipment(Uint8 slot, int id); - - /** - * Sets the sex for this being. - */ - virtual void - setSex(Uint8 sex) { mSex = sex; } - - /** - * Gets the sex for this being. - */ - Uint8 - getSex() const { return mSex; } - /** * Makes this being take the next step of his path. */ @@ -364,8 +321,6 @@ class Being : public Sprite virtual Being::TargetCursorSize getTargetCursorSize() const { return TC_MEDIUM; } - std::auto_ptr mEquipment; - /** * Take control of a particle. */ @@ -378,7 +333,6 @@ class Being : public Sprite void setPath(const Path &path, int mod = 1024); Uint16 mId; /**< Unique being id */ - Uint8 mSex; /**< Character's gender */ Uint16 mWalkSpeed; /**< Walking speed */ Uint16 mSpeedModifier; /**< Modifier to keep course on sync (1024 = normal speed) */ Uint8 mSpriteDirection; /**< Facing direction */ @@ -391,12 +345,10 @@ class Being : public Sprite Path mPath; std::string mSpeech; - Uint16 mHairStyle, mHairColor; Uint32 mSpeechTime; Sint32 mPx, mPy; /**< Pixel coordinates */ std::vector mSprites; - std::vector mEquipmentSpriteIDs; std::list mChildParticleEffects; private: -- cgit v1.2.3-70-g09d2