diff options
Diffstat (limited to 'src/guild.h')
-rw-r--r-- | src/guild.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/guild.h b/src/guild.h index 19cfd99c..68806eec 100644 --- a/src/guild.h +++ b/src/guild.h @@ -13,7 +13,7 @@ public: * Constructor with guild id passed to it */ Guild(short id, bool inviteRights); - + /** * Set the guild's name */ @@ -21,12 +21,12 @@ public: { mName = name; } - + /** * Add member to the list */ void addMember(const std::string &name); - + /** * Get the name of the guild * @return returns name of the guild @@ -35,7 +35,7 @@ public: { return mName; } - + /** * Get the id of the guild * @return Returns the id of the guild @@ -44,12 +44,12 @@ public: { return mId; } - + /** * Remove member from the guild */ void removeMember(const std::string &name); - + /** * Get size of members list * @return Returns the number of members in the guild. @@ -57,7 +57,7 @@ public: int getNumberOfElements() { return mMembers.size(); } - + /** * Get member at i * @return Returns the name of member. @@ -65,7 +65,7 @@ public: std::string getElementAt(int i) { return mMembers[i]; } - + /** * Get whether user can invite users to this guild * @return Returns true if user can invite users @@ -74,7 +74,9 @@ public: { return mCanInviteUsers; } - + + bool isMember(const std::string &name); + private: std::string mName; short mId; |