Guild Class Reference
#include <guild.h>
List of all members.
Detailed Description
Definition at line 30 of file guild.h.
|
Public Member Functions |
| | Guild (short id, short rights) |
| | Constructor with guild id passed to it.
|
| void | setName (const std::string &name) |
| | Set the guild's name.
|
| void | addMember (const std::string &name) |
| | Add member to the list.
|
| const std::string & | getName () const |
| | Get the name of the guild.
|
| short | getId () const |
| | Get the id of the guild.
|
| void | removeMember (const std::string &name) |
| | Remove member from the guild.
|
| int | getNumberOfElements () |
| | Get size of members list.
|
| std::string | getElementAt (int i) |
| | Get member at i.
|
| bool | getInviteRights () |
| | Get whether user can invite users to this guild.
|
| bool | isMember (const std::string &name) |
Private Attributes |
| std::string | mName |
| short | mId |
| std::vector< std::string > | mMembers |
| bool | mCanInviteUsers |
Constructor & Destructor Documentation
| Guild::Guild |
( |
short |
id, |
|
|
short |
rights | |
|
) |
| | |
Constructor with guild id passed to it.
Definition at line 24 of file guild.cpp.
Member Function Documentation
| void Guild::setName |
( |
const std::string & |
name |
) |
[inline] |
Set the guild's name.
Definition at line 41 of file guild.h.
| void Guild::addMember |
( |
const std::string & |
name |
) |
|
Add member to the list.
Definition at line 33 of file guild.cpp.
| const std::string& Guild::getName |
( |
|
) |
const [inline] |
Get the name of the guild.
- Returns:
- returns name of the guild
Definition at line 55 of file guild.h.
| short Guild::getId |
( |
|
) |
const [inline] |
Get the id of the guild.
- Returns:
- Returns the id of the guild
Definition at line 64 of file guild.h.
| void Guild::removeMember |
( |
const std::string & |
name |
) |
|
Remove member from the guild.
Definition at line 41 of file guild.cpp.
| int Guild::getNumberOfElements |
( |
|
) |
[inline] |
Get size of members list.
- Returns:
- Returns the number of members in the guild.
Definition at line 78 of file guild.h.
| std::string Guild::getElementAt |
( |
int |
i |
) |
[inline] |
Get member at i.
- Returns:
- Returns the name of member.
Definition at line 86 of file guild.h.
| bool Guild::getInviteRights |
( |
|
) |
[inline] |
Get whether user can invite users to this guild.
- Returns:
- Returns true if user can invite users
Definition at line 94 of file guild.h.
| bool Guild::isMember |
( |
const std::string & |
name |
) |
|
Member Data Documentation
The documentation for this class was generated from the following files: