summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-18 19:00:38 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-18 19:00:38 +0000
commit54ac35bc5a1484757efeae9b342469b9a00fe2a2 (patch)
tree73917e6a43f0a90a9f25aaaad24c214c37bf52c4 /src/being.h
parent03b2efa5973db10c3e6366aa0bd2990eee60d8b9 (diff)
downloadmana-54ac35bc5a1484757efeae9b342469b9a00fe2a2.tar.gz
mana-54ac35bc5a1484757efeae9b342469b9a00fe2a2.tar.bz2
mana-54ac35bc5a1484757efeae9b342469b9a00fe2a2.tar.xz
mana-54ac35bc5a1484757efeae9b342469b9a00fe2a2.zip
Removed player looks from generic beings. Prevented client termination on missing sprites. Merged weapon-type and attack-type fields for items.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h50
1 files changed, 1 insertions, 49 deletions
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.
@@ -190,48 +189,6 @@ class Being : public Sprite
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.
*/
virtual void
@@ -364,8 +321,6 @@ class Being : public Sprite
virtual Being::TargetCursorSize getTargetCursorSize() const
{ return TC_MEDIUM; }
- std::auto_ptr<Equipment> 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<AnimatedSprite*> mSprites;
- std::vector<int> mEquipmentSpriteIDs;
std::list<Particle *> mChildParticleEffects;
private: