Planeshift
Public Member Functions | Public Attributes

psGuildLevel Struct Reference

Defines a level inside a guild. More...

#include <psguildinfo.h>

List of all members.

Public Member Functions

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

Public Attributes

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

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

The rank of the level.

Definition at line 102 of file psguildinfo.h.

Bit field for the privileges.

Definition at line 103 of file psguildinfo.h.

Name of the level.

Definition at line 101 of file psguildinfo.h.


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