summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h30
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;