mp_serverlist.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  serverList_s

Defines

#define MAX_BOOKMARKS   16

Typedefs

typedef struct serverList_s serverList_t

Functions

void CL_PingServers_f (void)
 The first function called when entering the multiplayer menu, then CL_Frame takes over.
void CL_PrintServerList_f (void)
 Prints all the servers on the list to game console.
void CL_ParseTeamInfoMessage (struct dbuffer *msg)
 Team selection text.
void CL_ParseServerInfoMessage (struct dbuffer *msg, const char *hostname)
 Serverbrowser text.
void MP_ServerListInit (void)
void MP_ServerListShutdown (void)

Variables

serverList_tselectedServer

Define Documentation

#define MAX_BOOKMARKS   16

Definition at line 29 of file mp_serverlist.h.

Referenced by CL_BookmarkAdd_f(), CL_CompleteNetworkAddress(), and MP_ServerListInit().


Typedef Documentation

typedef struct serverList_s serverList_t

Function Documentation

void CL_ParseServerInfoMessage ( struct dbuffer msg,
const char *  hostname 
)
void CL_ParseTeamInfoMessage ( struct dbuffer msg  ) 

Team selection text.

This function fills the multiplayer_selectteam menu with content

See also:
NET_OOB_Printf
SVC_TeamInfo
CL_SelectTeam_Init_f

Todo:
warning must not be into the player list. if we see this we are the first player that would be connected to the server

Definition at line 204 of file mp_serverlist.c.

References _, Com_DPrintf(), Cvar_SetValue(), DEBUG_CLIENT, Info_IntegerForKey(), Info_ValueForKey(), LIST_AddString(), MAX_TEAMS, teamData_s::maxPlayersPerTeam, teamData_s::maxteams, NET_ReadString(), TEAM_NO_ACTIVE, teamData_s::teamCount, teamData, TEXT_MULTIPLAYER_USERLIST, TEXT_MULTIPLAYER_USERTEAM, UI_ExecuteConfunc(), UI_RegisterLinkedListText(), UI_ResetData(), and va().

Referenced by CL_ConnectionlessPacket().

void CL_PingServers_f ( void   ) 
void CL_PrintServerList_f ( void   ) 

Prints all the servers on the list to game console.

Definition at line 162 of file mp_serverlist.c.

References Com_Printf(), i, and serverListLength.

Referenced by MP_ServerListInit().

void MP_ServerListInit ( void   ) 
void MP_ServerListShutdown ( void   ) 

Definition at line 610 of file mp_serverlist.c.

References Cmd_RemoveCommand(), and masterServerQueryThread.

Referenced by GAME_MP_Shutdown().


Variable Documentation

Definition at line 39 of file mp_serverlist.c.

Referenced by CL_Connect_f().


Generated by  doxygen 1.6.2