Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Enumerations | Functions | Variables
administration.hpp File Reference
#include "inexor/io/Logging.hpp"

Go to the source code of this file.

Enumerations

enum  { PRIV_NONE = 0, PRIV_MASTER, PRIV_ADMIN, PRIV_LOCAL }
 priviledge levels More...
 
enum  {
  MM_START = -1, MM_OPEN = 0, MM_VETO, MM_LOCKED,
  MM_PRIVATE, MM_PASSWORD
}
 master mode states: server rights management More...
 

Functions

const char * privname (int type)
 
const char * mastermodename (int n, const char *unknown="unknown")
 Gives back the mastermode name based on the index. If index is out of range, gives back the given unknown-string. More...
 

Variables

static const char *const mastermodenames [] ={"default", "open", "veto", "locked", "private", "password"}
 static strings for server description in master server list More...
 

Enumeration Type Documentation

anonymous enum

priviledge levels

Enumerator
PRIV_NONE 
PRIV_MASTER 
PRIV_ADMIN 
PRIV_LOCAL 
anonymous enum

master mode states: server rights management

Enumerator
MM_START 
MM_OPEN 
MM_VETO 
MM_LOCKED 
MM_PRIVATE 
MM_PASSWORD 

Function Documentation

const char* mastermodename ( int  n,
const char *  unknown = "unknown" 
)
inline

Gives back the mastermode name based on the index. If index is out of range, gives back the given unknown-string.

References mastermodenames, and MM_START.

Referenced by game::parsemessages().

const char* privname ( int  type)
inline

References PRIV_ADMIN, PRIV_LOCAL, and PRIV_MASTER.

Referenced by server::setmaster().

Variable Documentation

const char* const mastermodenames[] ={"default", "open", "veto", "locked", "private", "password"}
static

static strings for server description in master server list

Referenced by mastermodename().