R:/projects/actioncube/_svn/trunk/ac/source/src/protocol.cpp File Reference

#include "pch.h"
#include "cube.h"
#include "hash.h"

Include dependency graph for protocol.cpp:


Functions

void putint (ucharbuf &p, int n)
int getint (ucharbuf &p)
void putuint (ucharbuf &p, int n)
int getuint (ucharbuf &p)
void sendstring (const char *text, ucharbuf &p)
void getstring (char *text, ucharbuf &p, int len)
void filtertext (char *dst, const char *src, int whitespace, int len)
void filterrichtext (char *dst, const char *src, int len)
const char * fullmodestr (int n)
const char * acronymmodestr (int n)
const char * modestr (int n, bool acronyms)
const char * voteerrorstr (int n)
const char * mmfullname (int n)
char msgsizelookup (int msg)
const char * genpwdhash (const char *name, const char *pwd, int salt)

Variables

const char * modefullnames []
const char * modeacronymnames []
const char * voteerrors [] = { "voting is currently disabled", "there is already a vote pending", "already voted", "can't vote that often", "this vote is not allowed in the current environment (singleplayer/multiplayer)", "no permission", "invalid vote" }
const char * mmfullnames [] = { "open", "private" }
char msgsizesl []

Function Documentation

const char* acronymmodestr ( int  n  ) 

void filterrichtext ( char *  dst,
const char *  src,
int  len 
)

void filtertext ( char *  dst,
const char *  src,
int  whitespace,
int  len 
)

const char* fullmodestr ( int  n  ) 

const char* genpwdhash ( const char *  name,
const char *  pwd,
int  salt 
)

int getint ( ucharbuf &  p  ) 

void getstring ( char *  text,
ucharbuf &  p,
int  len 
)

int getuint ( ucharbuf &  p  ) 

const char* mmfullname ( int  n  ) 

const char* modestr ( int  n,
bool  acronyms 
)

char msgsizelookup ( int  msg  ) 

void putint ( ucharbuf &  p,
int  n 
)

void putuint ( ucharbuf &  p,
int  n 
)

void sendstring ( const char *  text,
ucharbuf &  p 
)

const char* voteerrorstr ( int  n  ) 


Variable Documentation

const char* mmfullnames[] = { "open", "private" }

const char* modeacronymnames[]

Initial value:

{
    "DEMO",
    "TDM", "coop", "DM", "SURV", "TSURV", "CTF", "PF", "BTDM", "BDM", "LSS",
    "OSOK", "TOSOK", "BOSOK", "HTF", "TKTF", "KTF"
}

const char* modefullnames[]

Initial value:

{
    "demo playback",
    "team deathmatch", "coopedit", "deathmatch", "survivor",
    "team survivor", "ctf", "pistol frenzy", "bot team deathmatch", "bot deathmatch", "last swiss standing",
    "one shot, one kill", "team one shot, one kill", "bot one shot, one kill", "hunt the flag", "team keep the flag", "keep the flag"
}

char msgsizesl[]

const char* voteerrors[] = { "voting is currently disabled", "there is already a vote pending", "already voted", "can't vote that often", "this vote is not allowed in the current environment (singleplayer/multiplayer)", "no permission", "invalid vote" }


Generated on Mon Dec 8 21:41:32 2008 for AssaultCube by  doxygen 1.5.7.1