diff options
author | David Athay <ko2fan@gmail.com> | 2008-03-05 18:44:03 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-03-05 18:44:03 +0000 |
commit | 431a0b17e7eee6b27f98b74f4d073f2131a089dd (patch) | |
tree | 446344a335696f12d1eec05a731b094c2d44d991 /src/player.h | |
parent | 8d2f8756b0e85f14b5d80ec63dc5e5a7f5f5de3d (diff) | |
download | mana-431a0b17e7eee6b27f98b74f4d073f2131a089dd.tar.gz mana-431a0b17e7eee6b27f98b74f4d073f2131a089dd.tar.bz2 mana-431a0b17e7eee6b27f98b74f4d073f2131a089dd.tar.xz mana-431a0b17e7eee6b27f98b74f4d073f2131a089dd.zip |
Fixed guild creation.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h index f6ecbd59..aff75221 100644 --- a/src/player.h +++ b/src/player.h @@ -28,6 +28,7 @@ class Graphics; class Map; +class Guild; enum Gender { GENDER_MALE = 0, @@ -87,6 +88,35 @@ class Player : public Being virtual void setSprite(int slot, int id, const std::string &color = ""); + /** + * Adds a guild to the player. + */ + Guild* addGuild(short guildId, bool inviteRights); + + /** + * Removers a guild from the player. + */ + void removeGuild(int id); + + /** + * Returns a pointer to the specified guild + */ + Guild* getGuild(const std::string &guildName); + + /** + * Returns a pointer to the guild with matching id + */ + Guild* getGuild(int id); + + /** + * Get number of guilds the player belongs to + */ + short getNumberOfGuilds(); + + protected: + // Character guild information + std::map<int, Guild*> mGuilds; + private: Gender mGender; Uint8 mHairStyle; |