UFO: Alien Invasion
|
Multiplayer game type code. More...
#include "../../cl_shared.h"
#include "../cl_game.h"
#include "cl_game_multiplayer.h"
#include "mp_callbacks.h"
#include "mp_serverlist.h"
#include "../../ui/ui_data.h"
Go to the source code of this file.
Functions | |
static CGAME_HARD_LINKED_FUNCTIONS void | GAME_MP_StartBattlescape (bool isTeamPlay) |
static void | GAME_MP_NotifyEvent (event_t eventType) |
static void | GAME_MP_EndRoundAnnounce (int playerNum, int team) |
static void | GAME_MP_StartServer_f (void) |
Starts a server and checks if the server loads a team unless he is a dedicated server admin. More... | |
static void | GAME_MP_Results (dbuffer *msg, int winner, int *numSpawned, int *numAlive, int numKilled[][MAX_TEAMS], int numStunned[][MAX_TEAMS], bool nextmap) |
After a mission was finished this function is called. More... | |
static const mapDef_t * | GAME_MP_MapInfo (int step) |
static void | GAME_MP_UpdateGametype_f (void) |
Update the map according to the gametype. More... | |
static void | GAME_MP_AddChatMessage (const char *text) |
Displays a chat on the hud and add it to the chat buffer. More... | |
static bool | GAME_MP_HandleServerCommand (const char *command, dbuffer *msg) |
static void | GAME_MP_InitStartup (void) |
static void | GAME_MP_Shutdown (void) |
static void | GAME_MP_RunFrame (float secondsSinceLastFrame) |
const cgame_export_t * | GetCGameAPI (const cgame_import_t *import) |
Variables | |
static const cgame_import_t * | cgi |
static linkedList_t * | mp_chatMessageStack = nullptr |
static const cmdList_t | multiplayerCmds [] |
Multiplayer game type code.
Definition in file cl_game_multiplayer.cpp.
|
static |
Displays a chat on the hud and add it to the chat buffer.
Definition at line 211 of file cl_game_multiplayer.cpp.
References Com_Trim(), Q_strncpyz(), and TEXT_CHAT_WINDOW.
Referenced by GetCGameAPI().
Definition at line 52 of file cl_game_multiplayer.cpp.
References _, cgame_import_s::CL_PlayerGetName(), and Com_sprintf().
Referenced by GetCGameAPI().
|
static |
Definition at line 223 of file cl_game_multiplayer.cpp.
References GAME_MP_ParseTeamInfoMessage(), Q_streq, and SV_CMD_TEAMINFO.
Referenced by GetCGameAPI().
Definition at line 238 of file cl_game_multiplayer.cpp.
References cgame_import_s::Cvar_ForceSet(), cgame_import_s::Cvar_Set(), GAME_MP_CallbacksInit(), and GAME_MP_ServerListInit().
Referenced by GetCGameAPI().
Definition at line 151 of file cl_game_multiplayer.cpp.
References _, cgame_import_s::csi, cgame_import_s::Cvar_GetString(), cgame_import_s::GAME_GetCurrentSelectedMap(), mapDef_s::gameTypes, csi_s::gts, i, gametype_s::id, cgame_import_s::LIST_ContainsString(), mapDef_s::maxAliens, mapDef_s::multiplayer, gametype_s::name, csi_s::numGTs, and TEXT_LIST2.
Referenced by GAME_MP_UpdateGametype_f(), and GetCGameAPI().
Definition at line 44 of file cl_game_multiplayer.cpp.
References EV_RESET.
Referenced by GetCGameAPI().
|
static |
After a mission was finished this function is called.
msg | The network message buffer |
winner | The winning team |
numSpawned | The amounts of all spawned actors per team |
numAlive | The amount of survivors per team |
numKilled | The amount of killed actors for all teams. The first dimension contains the attacker team, the second the victim team |
numStunned | The amount of stunned actors for all teams. The first dimension contains the attacker team, the second the victim team |
nextmap | Indicates if there is another map to follow within the same mission |
Definition at line 125 of file cl_game_multiplayer.cpp.
References _, i, MAX_TEAMS, TEXT_LIST2, and va().
Referenced by GetCGameAPI().
|
static |
Definition at line 260 of file cl_game_multiplayer.cpp.
References ca_connected, cl_maxsoldiersperplayer, cl_maxsoldiersperteam, cl_roundtimelimit, cgame_import_s::Cvar_GetString(), i, lengthof, cvar_s::modified, name, Q_strnull(), rcon_client_password, cvar_s::string, and SV_CMD_RCON.
Referenced by GetCGameAPI().
Definition at line 249 of file cl_game_multiplayer.cpp.
References GAME_MP_CallbacksShutdown(), GAME_MP_ServerListShutdown(), OBJZERO, and teamData.
Referenced by GetCGameAPI().
|
static |
Definition at line 37 of file cl_game_multiplayer.cpp.
References cvar_s::modified, and rcon_client_password.
Referenced by GetCGameAPI().
Starts a server and checks if the server loads a team unless he is a dedicated server admin.
Definition at line 71 of file cl_game_multiplayer.cpp.
References _, mapDef_s::aircraft, cl_maxsoldiersperplayer, cl_maxsoldiersperteam, cgame_import_s::Com_GetRandomMapAssemblyNameForCraft(), cgame_import_s::Cvar_Set(), linkedList_t::data, cgame_import_s::GAME_GetCurrentSelectedMap(), cvar_s::integer, cgame_import_s::LIST_GetRandom(), mapDef_s::mapTheme, mapDef_s::multiplayer, mapDef_s::params, mapDef_s::teams, and mapDef_s::ufos.
Update the map according to the gametype.
Definition at line 187 of file cl_game_multiplayer.cpp.
References cgame_import_s::csi, cgame_import_s::Cvar_GetString(), cgame_import_s::GAME_GetCurrentSelectedMap(), GAME_MP_MapInfo(), mapDef_s::gameTypes, cgame_import_s::LIST_ContainsString(), mapDef_s::multiplayer, and csi_s::numGTs.
const cgame_export_t* GetCGameAPI | ( | const cgame_import_t * | import | ) |
Definition at line 287 of file cl_game_multiplayer.cpp.
References GAME_MP_AddChatMessage(), GAME_MP_EndRoundAnnounce(), GAME_MP_HandleServerCommand(), GAME_MP_InitStartup(), GAME_MP_MapInfo(), GAME_MP_NotifyEvent(), GAME_MP_Results(), GAME_MP_RunFrame(), GAME_MP_Shutdown(), GAME_MP_StartBattlescape(), cgame_export_s::isMultiplayer, cgame_export_s::MapInfo(), cgame_export_s::menu, cgame_export_s::name, and OBJZERO.
|
static |
Definition at line 33 of file cl_game_multiplayer.cpp.
|
static |
Definition at line 206 of file cl_game_multiplayer.cpp.
|
static |
Definition at line 233 of file cl_game_multiplayer.cpp.