Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions | Variables
client.hpp File Reference
#include "inexor/shared/cube_types.hpp"
#include "inexor/shared/cube_vector.hpp"

Go to the source code of this file.

Namespaces

 game
 implementation of basic game functionsand cubescript bindings
 

Functions

int game::parseplayer (const char *arg)
 all functions can be called using client number or full name name should be case sensitive but the engine checks is both ways More...
 
void game::ignore (int cn)
 ignore all chat messags from a certain client number More...
 
void game::unignore (int cn)
 stop ignoring all chat messages from a certain client number More...
 
bool game::isignored (int cn)
 cubescript: check if this person is ignored by you More...
 
bool game::addmsg (int type, const char *fmt,...)
 add network message More...
 
void game::switchname (const char *name, const char *tag)
 

team, name and playermodel settings More...

 
void game::switchteam (const char *team)
 switch own team More...
 
void game::switchplayermodel (int playermodel)
 switch my player model (inky, ogro..) More...
 
void game::sendmapinfo ()
 set booleans sendcrc and senditemstoserver if connected. More...
 
void game::stopdemo ()
 
void game::changemap (const char *name, int mode)
 request map change, server may ignore More...
 
void game::forceintermission ()
 
void game::c2sinfo (bool force)
 send update to the server More...
 
void game::sendposition (fpsent *d, bool reliable)
 send my own player position to server (call function above) More...
 
void game::gamedisconnect (bool cleanup)
 clean up local storage/vars after disconnect from server More...
 
void game::parsepacketclient (int chan, packetbuf &p)
 
void game::connectattempt (const char *mapwish, int modewish, const char *password)
 copy connection password (?) More...
 
void game::connectfail ()
 reset connection password after connection failed More...
 
void game::gameconnect ()
 ? More...
 
bool game::allowedittoggle ()
 check if editing is available More...
 
void game::edittoggled (bool on)
 send edit toggle to server More...
 
void game::writeclientinfo (stream *f)
 write my player name to a stream More...
 
void game::toserver (char *text)
 send chat messages to server More...
 
void game::changemap (const char *name)
 validates game mode name and calls changemap above More...
 
void game::forceedit (const char *name)
 force edit mode More...
 
bool game::ispaused ()
 check if game is paused More...
 
bool game::allowmouselook ()
 check if looking around with the mouse is allowed. More...
 
void game::broadcastfov (int fov)
 
void game::edittrigger (const selinfo &sel, int op, int arg1, int arg2, int arg3, const VSlot *vs)
 send edit messages to servers More...
 
void game::vartrigger (ident *id)
 change map vars in edit mode in multiplayer More...
 
void game::newmap (int size)
 request server to start new map (requires editmode) More...
 

Variables

int game::paused