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

#include "pch.h"
#include "cube.h"
#include "bot/bot.h"

Include dependency graph for client.cpp:


Functions

 VAR (connected, 1, 0, 0)
int getclientnum ()
bool multiplayer (bool msg)
bool allowedittoggle ()
void throttle ()
 VARF (throttle_interval, 0, 5, 30, throttle())
 VARF (throttle_accel, 0, 2, 32, throttle())
 VARF (throttle_decel, 0, 2, 32, throttle())
void abortconnect ()
void connectserv_ (const char *servername, const char *serverport=NULL, const char *password=NULL, int role=CR_DEFAULT)
void connectserv (char *servername, char *serverport, char *password)
void connectadmin (char *servername, char *serverport, char *password)
void lanconnect ()
void disconnect (int onlyclean, int async)
void trydisconnect ()
void toserver (char *text)
void echo (char *text)
 COMMAND (echo, ARG_CONC)
 COMMANDN (say, toserver, ARG_CONC)
 COMMANDN (connect, connectserv, ARG_3STR)
 COMMAND (connectadmin, ARG_3STR)
 COMMAND (lanconnect, ARG_NONE)
 COMMANDN (disconnect, trydisconnect, ARG_NONE)
void cleanupclient ()
void addmsg (int type, const char *fmt,...)
void sendpackettoserv (int chan, ENetPacket *packet)
void c2skeepalive ()
void c2sinfo (playerent *d)
void sendintro ()
void gets2c ()
void resetsecuremaps ()
void securemap (char *map)
bool securemapcheck (char *map, bool msg)
void sendmap (char *mapname)
void getmap ()
void getdemo (int i)
void listdemos ()
 COMMAND (sendmap, ARG_1STR)
 COMMAND (getmap, ARG_NONE)
 COMMAND (resetsecuremaps, ARG_NONE)
 COMMAND (securemap, ARG_1STR)
 COMMAND (getdemo, ARG_1INT)
 COMMAND (listdemos, ARG_NONE)

Variables

ENetHost * clienthost = NULL
ENetPeer * curpeer = NULL
ENetPeer * connpeer = NULL
int connmillis = 0
int connattempts = 0
int discmillis = 0
bool c2sinit = false
bool watchingdemo = false
string clientpassword = ""
int connectrole = CR_DEFAULT
vector< uchar > messages
static int lastupdate = -1000
static int lastping = 0
bool senditemstoserver = false
string masterpwd
cvector securemaps

Function Documentation

void abortconnect (  ) 

void addmsg ( int  type,
const char *  fmt,
  ... 
)

bool allowedittoggle (  ) 

void c2sinfo ( playerent *  d  ) 

void c2skeepalive (  ) 

void cleanupclient (  ) 

COMMAND ( listdemos  ,
ARG_NONE   
)

COMMAND ( getdemo  ,
ARG_1INT   
)

COMMAND ( securemap  ,
ARG_1STR   
)

COMMAND ( resetsecuremaps  ,
ARG_NONE   
)

COMMAND ( getmap  ,
ARG_NONE   
)

COMMAND ( sendmap  ,
ARG_1STR   
)

COMMAND ( lanconnect  ,
ARG_NONE   
)

COMMAND ( connectadmin  ,
ARG_3STR   
)

COMMAND ( echo  ,
ARG_CONC   
)

COMMANDN ( disconnect  ,
trydisconnect  ,
ARG_NONE   
)

COMMANDN ( connect  ,
connectserv  ,
ARG_3STR   
)

COMMANDN ( say  ,
toserver  ,
ARG_CONC   
)

void connectadmin ( char *  servername,
char *  serverport,
char *  password 
)

void connectserv ( char *  servername,
char *  serverport,
char *  password 
)

void connectserv_ ( const char *  servername,
const char *  serverport = NULL,
const char *  password = NULL,
int  role = CR_DEFAULT 
)

void disconnect ( int  onlyclean,
int  async 
)

void echo ( char *  text  ) 

int getclientnum (  ) 

void getdemo ( int  i  ) 

void getmap (  ) 

void gets2c (  ) 

void lanconnect (  ) 

void listdemos (  ) 

bool multiplayer ( bool  msg  ) 

void resetsecuremaps (  ) 

void securemap ( char *  map  ) 

bool securemapcheck ( char *  map,
bool  msg 
)

void sendintro (  ) 

void sendmap ( char *  mapname  ) 

void sendpackettoserv ( int  chan,
ENetPacket *  packet 
)

void throttle (  ) 

void toserver ( char *  text  ) 

void trydisconnect (  ) 

VAR ( connected  ,
1  ,
0  ,
0   
)

VARF ( throttle_decel  ,
0  ,
2  ,
32  ,
throttle()   
)

VARF ( throttle_accel  ,
0  ,
2  ,
32  ,
throttle()   
)

VARF ( throttle_interval  ,
0  ,
5  ,
30  ,
throttle()   
)


Variable Documentation

bool c2sinit = false

ENetHost* clienthost = NULL

int connattempts = 0

int connectrole = CR_DEFAULT

int connmillis = 0

ENetPeer * connpeer = NULL

ENetPeer* curpeer = NULL

int discmillis = 0

int lastping = 0 [static]

int lastupdate = -1000 [static]

bool senditemstoserver = false

bool watchingdemo = false


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