Planeshift
Public Member Functions

psCommandManager Class Reference

This class handles the permission system such as Game Masters and Role play masters. More...

#include <commandmanager.h>

List of all members.

Public Member Functions

void BuildXML (int securityLevel, csString &dest, bool subscribe=true)
bool GroupExists (int securityLevel)
bool LoadFromDatabase ()
bool Validate (int securityLevel, const char *command)
bool Validate (int securityLevel, const char *command, csString &error)
virtual ~psCommandManager ()

Detailed Description

This class handles the permission system such as Game Masters and Role play masters.

This system uses 2 database tables. One that defines the groups and their names ( and their parent group for inherriting commands ).

The second is a table that assigns commands to different groups. On load it will create two lists. One based on group number and one based on command.

That way when a player logs in we can get a list of commands based on their group and send them a subscribe message. We can also then do level checking when we receive a command from a client.

Definition at line 70 of file commandmanager.h.


Constructor & Destructor Documentation

virtual psCommandManager::~psCommandManager ( ) [virtual]

Member Function Documentation

void psCommandManager::BuildXML ( int  securityLevel,
csString &  dest,
bool  subscribe = true 
)
bool psCommandManager::GroupExists ( int  securityLevel)
bool psCommandManager::LoadFromDatabase ( )
bool psCommandManager::Validate ( int  securityLevel,
const char *  command 
)
bool psCommandManager::Validate ( int  securityLevel,
const char *  command,
csString &  error 
)

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