Planeshift
psGuildMember Class Reference

Defines a guild member in a guild. More...

#include <psguildinfo.h>

Public Member Functions

bool HasRights (GUILD_PRIVILEGE rights)
 Checks if the request right is possessed by this guild member. More...
 

Public Attributes

PID char_id
 The character ID of the person. More...
 
psCharactercharacter
 Pointer to the character data of the person. More...
 
int guild_points
 Their points in the guild. More...
 
psGuildLevelguildlevel
 Members current level. More...
 
csString last_login
 The last login time for that user. More...
 
csString name
 The name of the member. More...
 
csString private_notes
 Private Guild notes for the player. More...
 
int privileges
 Bit field for additional privileges. More...
 
csString public_notes
 The public notes the member has. More...
 
int removedPrivileges
 Bit field for privileges removed from this member. More...
 

Detailed Description

Defines a guild member in a guild.

Database tables: guilds, characters

Definition at line 124 of file psguildinfo.h.

Member Function Documentation

bool psGuildMember::HasRights ( GUILD_PRIVILEGE  rights)
inline

Checks if the request right is possessed by this guild member.

Parameters
rightsThe right that is being tested
Returns
True if the member has the privilege exclusively set or if the guild member's level has the privilege and the user does not have it exclusively removed.

Definition at line 145 of file psguildinfo.h.

Member Data Documentation

PID psGuildMember::char_id

The character ID of the person.

Definition at line 127 of file psguildinfo.h.

psCharacter* psGuildMember::character

Pointer to the character data of the person.

Definition at line 129 of file psguildinfo.h.

int psGuildMember::guild_points

Their points in the guild.

Definition at line 131 of file psguildinfo.h.

psGuildLevel* psGuildMember::guildlevel

Members current level.

Definition at line 130 of file psguildinfo.h.

csString psGuildMember::last_login

The last login time for that user.

Definition at line 134 of file psguildinfo.h.

csString psGuildMember::name

The name of the member.

Definition at line 128 of file psguildinfo.h.

csString psGuildMember::private_notes

Private Guild notes for the player.

Definition at line 133 of file psguildinfo.h.

int psGuildMember::privileges

Bit field for additional privileges.

Definition at line 135 of file psguildinfo.h.

csString psGuildMember::public_notes

The public notes the member has.

Definition at line 132 of file psguildinfo.h.

int psGuildMember::removedPrivileges

Bit field for privileges removed from this member.

Definition at line 136 of file psguildinfo.h.


The documentation for this class was generated from the following file: