Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
server::clientinfo Struct Reference

#include <client_management.hpp>

Public Types

enum  { PUSHMILLIS = 3000 }
 

Public Member Functions

 clientinfo ()
 
 ~clientinfo ()
 
void addevent (gameevent *e)
 
int calcpushrange ()
 
bool checkpushed (int millis, int range)
 
void scheduleexceeded ()
 
void setexceeded ()
 
void setpushed ()
 
bool checkexceeded ()
 
void mapchange ()
 
void reassign ()
 
void cleanclipboard (bool fullclean=true)
 
void reset ()
 
int geteventmillis (int servmillis, int clientmillis)
 

Public Attributes

int clientnum
 
int ownernum
 
int connectmillis
 
int sessionid
 
int overflow
 
string name
 
string tag
 
string team
 
string mapvote
 
int playermodel
 
int fov
 
int modevote
 
int privilege
 
bool connected
 
bool timesync
 
int gameoffset
 
int lastevent
 
int pushed
 
int exceeded
 
gamestate state
 
vector< gameevent * > events
 
vector< ucharposition
 
vector< ucharmessages
 
ucharwsdata
 
int wslen
 
vector< clientinfo * > bots
 
int ping
 
int aireinit
 
string clientmap
 
int mapcrc
 
bool warned
 
bool gameclip
 
ENetPacket * getdemo
 
ENetPacket * getmap
 
ENetPacket * clipboard
 
int lastclipboard
 
int needclipboard
 

Member Enumeration Documentation

anonymous enum
Enumerator
PUSHMILLIS 

Constructor & Destructor Documentation

server::clientinfo::clientinfo ( )
inline

References reset().

server::clientinfo::~clientinfo ( )
inline

References cleanclipboard(), and events.

Member Function Documentation

void server::clientinfo::addevent ( gameevent e)
inline
int server::clientinfo::calcpushrange ( )
inline
bool server::clientinfo::checkexceeded ( )
inline
bool server::clientinfo::checkpushed ( int  millis,
int  range 
)
inline

References pushed.

Referenced by setexceeded(), and setpushed().

void server::clientinfo::cleanclipboard ( bool  fullclean = true)
inline

References clipboard, and lastclipboard.

Referenced by server::parsepacket(), reset(), and ~clientinfo().

int server::clientinfo::geteventmillis ( int  servmillis,
int  clientmillis 
)
inline
void server::clientinfo::mapchange ( )
inline
void server::clientinfo::reassign ( )
inline
void server::clientinfo::reset ( )
inline
void server::clientinfo::scheduleexceeded ( )
inline
void server::clientinfo::setexceeded ( )
inline
void server::clientinfo::setpushed ( )
inline

Member Data Documentation

int server::clientinfo::aireinit

Referenced by reset().

vector<clientinfo *> server::clientinfo::bots
string server::clientinfo::clientmap
int server::clientinfo::clientnum

Referenced by server::addgban(), server::addmessages(), server::addteamkill(), server::allowconnect(), server::autoteam(), server::bombservermode::canspawn(), server::changemap(), server::checkmaps(), server::clientconnect(), server::colorname(), server::collectservermode::deposittokens(), server::ctfservermode::died(), server::dodamage(), server::ctfservermode::dropflag(), server::collectservermode::droptokens(), server::extinfoplayer(), server::extserverinforeply(), server::findscore(), server::forcespectator(), server::hasmap(), server::hideandseekservermode::isfreezed(), server::kickclients(), server::bombservermode::leavegame(), server::collectservermode::leavegame(), server::hideandseekservermode::leavegame(), server::ctfservermode::leavegame(), server::numclients(), server::bombservermode::parse_network_message(), server::parsepacket(), server::pausegame(), server::player_connected(), server::shotevent::process(), server::explodeevent::process(), server::pickupevent::process(), server::promote_if_local_client(), server::putinitclient(), server::captureservermode::regenowners(), server::captureservermode::replenishammo(), server::ctfservermode::scoreflag(), server::sendclipboard(), server::senddemo(), server::sendinitclient(), server::sendmessages(), server::sendpositions(), server::sendresume(), server::sendservinfo(), server::sendspawn(), server::sendwelcome(), server::serverupdate(), server::hideandseekservermode::setfreezedstate(), server::hideandseekservermode::sethider(), server::setmaster(), server::hideandseekservermode::setseeker(), server::suicide(), server::ctfservermode::takeflag(), server::collectservermode::taketoken(), server::trykick(), server::unspectate(), and server::welcomeinitclient().

ENetPacket * server::clientinfo::clipboard
bool server::clientinfo::connected
int server::clientinfo::connectmillis

Referenced by server::clientconnect().

vector<gameevent *> server::clientinfo::events
int server::clientinfo::exceeded
int server::clientinfo::fov
bool server::clientinfo::gameclip
int server::clientinfo::gameoffset

Referenced by geteventmillis().

ENetPacket* server::clientinfo::getdemo
ENetPacket * server::clientinfo::getmap
int server::clientinfo::lastclipboard
int server::clientinfo::lastevent
int server::clientinfo::mapcrc
string server::clientinfo::mapvote
vector<uchar> server::clientinfo::messages
int server::clientinfo::modevote
string server::clientinfo::name
int server::clientinfo::needclipboard
int server::clientinfo::overflow
int server::clientinfo::ownernum
int server::clientinfo::ping
int server::clientinfo::playermodel
vector<uchar> server::clientinfo::position
int server::clientinfo::privilege
int server::clientinfo::pushed

Referenced by checkpushed(), mapchange(), and setpushed().

int server::clientinfo::sessionid
gamestate server::clientinfo::state

Referenced by addevent(), server::addgban(), server::addteamkill(), server::autoteam(), server::buildworldstate(), server::bombservermode::canspawn(), server::collectservermode::canspawn(), server::ctfservermode::canspawn(), server::captureservermode::canspawn(), server::changemap(), server::captureservermode::changeteam(), checkexceeded(), server::checkmaps(), server::checkvotes(), server::choosebestclient(), server::chooseworstteam(), server::colorname(), server::collectservermode::deposittokens(), server::bombservermode::died(), server::captureservermode::died(), server::disconnect_client(), server::dodamage(), server::ctfservermode::dropflag(), server::collectservermode::droptokens(), server::captureservermode::entergame(), server::extinfoplayer(), server::extinfoteams(), server::findscore(), server::forcespectator(), server::hideandseekservermode::getactiveplayers(), geteventmillis(), server::hasmap(), server::kickclients(), server::collectservermode::leavegame(), server::captureservermode::leavegame(), mapchange(), server::numclients(), server::bombservermode::parse_network_message(), server::collectservermode::parse_network_message(), server::ctfservermode::parse_network_message(), server::captureservermode::parse_network_message(), server::parsepacket(), server::pickup(), server::player_connected(), server::shotevent::process(), server::explodeevent::process(), server::pickupevent::process(), server::processevents(), server::putinitclient(), reassign(), server::receivefile(), server::captureservermode::regenowners(), server::captureservermode::replenishammo(), server::restorescore(), server::revokemaster(), server::savescore(), scheduleexceeded(), server::ctfservermode::scoreflag(), server::sendmessages(), server::sendpositions(), server::sendresume(), server::sendspawn(), server::bombservermode::sendspawnlocs(), server::serverupdate(), setexceeded(), server::setmaster(), server::captureservermode::spawned(), server::spawnstate(), server::captureservermode::stealbase(), server::suicide(), server::ctfservermode::takeflag(), server::collectservermode::taketoken(), server::unspectate(), server::bombservermode::updatelimbo(), and server::vote().

string server::clientinfo::tag
string server::clientinfo::team
bool server::clientinfo::timesync
bool server::clientinfo::warned
uchar* server::clientinfo::wsdata
int server::clientinfo::wslen

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