UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mp_callbacks.h File Reference

Serverlist menu callbacks headers for multiplayer. More...

Go to the source code of this file.

Data Structures

struct  teamData_s
 

Macros

#define MAX_MESSAGE_TEXT   256
 

Typedefs

typedef struct teamData_s teamData_t
 

Functions

void GAME_MP_CallbacksInit (const struct cgame_import_s *import)
 
void GAME_MP_CallbacksShutdown (void)
 
bool GAME_MP_Rcon (const char *password, const char *command)
 Sends an rcon command to the gameserver that the user is currently connected to, or if this is not the case, the gameserver that is specified in the cvar rcon_address. More...
 

Variables

teamData_t teamData
 
cvar_trcon_client_password
 
cvar_tcl_maxsoldiersperteam
 
cvar_tcl_maxsoldiersperplayer
 
cvar_tcl_roundtimelimit
 

Detailed Description

Serverlist menu callbacks headers for multiplayer.

Definition in file mp_callbacks.h.

Macro Definition Documentation

#define MAX_MESSAGE_TEXT   256

Definition at line 28 of file mp_callbacks.h.

Typedef Documentation

typedef struct teamData_s teamData_t

Function Documentation

void GAME_MP_CallbacksInit ( const struct cgame_import_s import)
void GAME_MP_CallbacksShutdown ( void  )

Definition at line 318 of file mp_callbacks.cpp.

Referenced by GAME_MP_Shutdown().

bool GAME_MP_Rcon ( const char *  password,
const char *  command 
)

Sends an rcon command to the gameserver that the user is currently connected to, or if this is not the case, the gameserver that is specified in the cvar rcon_address.

Returns
true if the command was send, false otherwise.

Definition at line 112 of file mp_callbacks.cpp.

References ca_connected, DOUBLEQUOTE, GAME_MP_RconCallback(), cgame_import_s::NET_Connect(), port, PORT_SERVER, Q_strnull(), cvar_s::string, and SV_CMD_RCON.

Referenced by GAME_MP_Rcon_f().

Variable Documentation

cvar_t* cl_maxsoldiersperplayer

Definition at line 37 of file mp_callbacks.cpp.

Referenced by GAME_MP_RunFrame(), and GAME_MP_StartServer_f().

cvar_t* cl_maxsoldiersperteam

Definition at line 36 of file mp_callbacks.cpp.

Referenced by GAME_MP_RunFrame(), and GAME_MP_StartServer_f().

cvar_t* cl_roundtimelimit

Definition at line 38 of file mp_callbacks.cpp.

Referenced by GAME_MP_RunFrame().

cvar_t* rcon_client_password

Definition at line 35 of file mp_callbacks.cpp.

Referenced by GAME_MP_RunFrame(), and GAME_MP_StartBattlescape().

teamData_t teamData

Definition at line 34 of file mp_callbacks.cpp.

Referenced by GAME_MP_ParseTeamInfoMessage(), and GAME_MP_Shutdown().