diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-13 23:24:50 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-13 23:24:50 +0000 |
commit | 9e6862623370f53d1b78e4bd167152b840e28884 (patch) | |
tree | 21071f17a775b101163dabc31e6aeefedf199c12 /src/player.h | |
parent | afc770043be553998555e9ac1cffca68dc482d48 (diff) | |
download | mana-9e6862623370f53d1b78e4bd167152b840e28884.tar.gz mana-9e6862623370f53d1b78e4bd167152b840e28884.tar.bz2 mana-9e6862623370f53d1b78e4bd167152b840e28884.tar.xz mana-9e6862623370f53d1b78e4bd167152b840e28884.zip |
Verify the gender to prevent crashing when something is wrong with the communication.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/src/player.h b/src/player.h index 15e7f655..5ff0509f 100644 --- a/src/player.h +++ b/src/player.h @@ -35,21 +35,31 @@ class AnimatedSprite; class Player : public Being { public: + /** + * Constructor. + */ Player(Uint32 id, Uint16 job, Map *map); - virtual void logic(); + virtual void + logic(); - virtual Type getType() const; + virtual Type + getType() const; - virtual void drawName(Graphics *graphics, Sint32 offsetX, Sint32 offsetY); + virtual void + drawName(Graphics *graphics, Sint32 offsetX, Sint32 offsetY); - virtual void setSex(Uint8 sex); + virtual void + setSex(Uint8 sex); - virtual void setHairColor(Uint16 color); + virtual void + setHairColor(Uint16 color); - virtual void setHairStyle(Uint16 style); + virtual void + setHairStyle(Uint16 style); - virtual void setVisibleEquipment(Uint8 slot, Uint8 id); + virtual void + setVisibleEquipment(Uint8 slot, Uint8 id); }; #endif |