Planeshift
psGuildLevel Struct Reference

Defines a level inside a guild. More...

#include <psguildinfo.h>

Public Member Functions

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

Public Attributes

int level
 The rank of the level. More...
 
int privileges
 Bit field for the privileges. More...
 
csString title
 Name of the level. More...
 

Detailed Description

Defines a level inside a guild.

The level has a name and different flags for the privileges assigned to the level. <br> Database table: guildlevels

Definition at line 99 of file psguildinfo.h.

Member Function Documentation

bool psGuildLevel::HasRights ( GUILD_PRIVILEGE  rights) const
inline

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

Parameters
rightsThe right that is being tested
Returns
True if this is the max guild level or privileges has the bit

Definition at line 111 of file psguildinfo.h.

Member Data Documentation

int psGuildLevel::level

The rank of the level.

Definition at line 102 of file psguildinfo.h.

int psGuildLevel::privileges

Bit field for the privileges.

Definition at line 103 of file psguildinfo.h.

csString psGuildLevel::title

Name of the level.

Definition at line 101 of file psguildinfo.h.


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