summaryrefslogtreecommitdiff
path: root/src/guild.h
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-04-16 12:59:02 +0000
committerDavid Athay <ko2fan@gmail.com>2008-04-16 12:59:02 +0000
commit0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01 (patch)
tree6f1911b6d5e8a0e2d43b46c79add9bb0c544f93c /src/guild.h
parente2e4ceb9fa8a72ad94853f74724676fff82b15c0 (diff)
downloadmana-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.tar.gz
mana-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.tar.bz2
mana-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.tar.xz
mana-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.zip
Fixed online status so that users are shown as online
Diffstat (limited to 'src/guild.h')
-rw-r--r--src/guild.h20
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;