diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-06-21 17:06:57 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-06-21 17:06:57 +0000 |
commit | e87c165b31b3bdb784f23fd7d1e6a795859aa24c (patch) | |
tree | 913263b303ff1019d8be92ade326a028c012db16 /src/gui/playerbox.cpp | |
parent | 46cf032fc0eea43743b86d9e05950dd7a65728b7 (diff) | |
download | mana-e87c165b31b3bdb784f23fd7d1e6a795859aa24c.tar.gz mana-e87c165b31b3bdb784f23fd7d1e6a795859aa24c.tar.bz2 mana-e87c165b31b3bdb784f23fd7d1e6a795859aa24c.tar.xz mana-e87c165b31b3bdb784f23fd7d1e6a795859aa24c.zip |
Added female players.
Diffstat (limited to 'src/gui/playerbox.cpp')
-rw-r--r-- | src/gui/playerbox.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp index 8174ad77..d5c70ffe 100644 --- a/src/gui/playerbox.cpp +++ b/src/gui/playerbox.cpp @@ -35,14 +35,15 @@ #include "../utils/dtor.h" extern std::vector<Spriteset *> hairset; -extern Spriteset *playerset; +extern Spriteset *playerset[2]; int PlayerBox::instances = 0; ImageRect PlayerBox::background; -PlayerBox::PlayerBox(): +PlayerBox::PlayerBox(unsigned char sex): mHairColor(0), mHairStyle(0), + mSex(sex), mShowPlayer(false) { setBorderSize(2); @@ -90,7 +91,7 @@ void PlayerBox::draw(gcn::Graphics *graphics) // Draw character dynamic_cast<Graphics*>(graphics)->drawImage( - playerset->get(0), 23, 12); + playerset[mSex]->get(0), 23, 12); // Draw his hair if (mHairColor >= 0 && mHairStyle >= 0 && |