mp_callbacks.c File Reference

Serverlist menu callbacks for multiplayer. More...

#include "../client.h"
#include "../cl_team.h"
#include "../ui/ui_main.h"
#include "../ui/ui_popup.h"
#include "mp_callbacks.h"
#include "mp_serverlist.h"
#include "mp_team.h"
Include dependency graph for mp_callbacks.c:

Go to the source code of this file.

Functions

void CL_Connect_f (void)
static void CL_RconCallback (struct net_stream *s)
void CL_Rcon_f (void)
void CL_Disconnect_f (void)
 Binding for disconnect console command.
void CL_Reconnect_f (void)
 The server is changing levels.
static void CL_SelectTeam_Init_f (void)
 Send the teaminfo string to server.
static void CL_TeamNum_f (void)
 Increase or decrease the teamnum.
static int CL_CompleteNetworkAddress (const char *partial, const char **match)
 Autocomplete function for some network functions.
void MP_CallbacksInit (void)
void MP_CallbacksShutdown (void)

Variables

teamData_t teamData
static cvar_trcon_client_password
static cvar_trcon_address
static cvar_tinfo_password

Detailed Description

Serverlist menu callbacks for multiplayer.

Definition in file mp_callbacks.c.


Function Documentation

static int CL_CompleteNetworkAddress ( const char *  partial,
const char **  match 
) [static]

Autocomplete function for some network functions.

See also:
Cmd_AddParamCompleteFunction
Todo:
Extend this for all the servers on the server browser list

Definition at line 251 of file mp_callbacks.c.

References Cmd_GenericCompleteFunction(), Com_Printf(), Cvar_GetString(), i, len, MAX_BOOKMARKS, MAX_COMPLETE, and va().

Referenced by MP_CallbacksInit().

void CL_Connect_f ( void   ) 
void CL_Disconnect_f ( void   ) 

Binding for disconnect console command.

See also:
CL_Disconnect
CL_Drop
SV_ShutdownWhenEmpty

Definition at line 148 of file mp_callbacks.c.

References CL_Drop(), and SV_ShutdownWhenEmpty().

Referenced by MP_CallbacksInit().

void CL_Rcon_f ( void   ) 
static void CL_RconCallback ( struct net_stream s  )  [static]
void CL_Reconnect_f ( void   ) 
static void CL_SelectTeam_Init_f ( void   )  [static]
static void CL_TeamNum_f ( void   )  [static]
void MP_CallbacksInit ( void   ) 
void MP_CallbacksShutdown ( void   ) 

Definition at line 307 of file mp_callbacks.c.

References Cmd_RemoveCommand().

Referenced by GAME_MP_Shutdown().


Variable Documentation

cvar_t* info_password [static]

Definition at line 37 of file mp_callbacks.c.

cvar_t* rcon_address [static]

Definition at line 36 of file mp_callbacks.c.

Definition at line 35 of file mp_callbacks.c.

Definition at line 34 of file mp_callbacks.c.

Referenced by CL_ParseTeamInfoMessage(), and GAME_MP_Shutdown().


Generated by  doxygen 1.6.2