|
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. | |
| 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. | |
| static const mapDef_t * | GAME_MP_MapInfo (int step) |
| static void | GAME_MP_UpdateGametype_f (void) |
| Update the map according to the gametype. | |
| static void | GAME_MP_AddChatMessage (const char *text) |
| Displays a chat on the hud and add it to the chat buffer. | |
| 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 cgi, Com_Trim(), mp_chatMessageStack, Q_strncpyz(), and TEXT_CHAT_WINDOW.
Referenced by GetCGameAPI().
Definition at line 52 of file cl_game_multiplayer.cpp.
References _, cgi, 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 cgi, GAME_MP_CallbacksInit(), GAME_MP_ServerListInit(), and multiplayerCmds.
Referenced by GetCGameAPI().
Definition at line 151 of file cl_game_multiplayer.cpp.
References _, cgi, mapDef_t::gameTypes, i, gametype_t::id, mapDef_t::maxAliens, mapDef_t::multiplayer, gametype_t::name, and TEXT_LIST2.
Referenced by GAME_MP_UpdateGametype_f(), and GetCGameAPI().
Definition at line 44 of file cl_game_multiplayer.cpp.
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 _, cgi, i, MAX_TEAMS, TEXT_LIST2, and va().
Referenced by GetCGameAPI().
|
static |
Definition at line 260 of file cl_game_multiplayer.cpp.
References ca_connected, cgi, cl_maxsoldiersperplayer, cl_maxsoldiersperteam, cl_roundtimelimit, i, lengthof, cvar_t::modified, name, Q_strnull(), rcon_client_password, and SV_CMD_RCON.
Referenced by GetCGameAPI().
Definition at line 249 of file cl_game_multiplayer.cpp.
References cgi, GAME_MP_CallbacksShutdown(), GAME_MP_ServerListShutdown(), multiplayerCmds, OBJZERO, and teamData.
Referenced by GetCGameAPI().
|
static |
Definition at line 37 of file cl_game_multiplayer.cpp.
References cgi, 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_t::aircraft, cgi, cl_maxsoldiersperplayer, cl_maxsoldiersperteam, linkedList_t::data, mapDef_t::mapTheme, mapDef_t::multiplayer, mapDef_t::params, mapDef_t::teams, and mapDef_t::ufos.
Update the map according to the gametype.
Definition at line 187 of file cl_game_multiplayer.cpp.
References cgi, GAME_MP_MapInfo(), mapDef_t::gameTypes, and mapDef_t::multiplayer.
| const cgame_export_t * GetCGameAPI | ( | const cgame_import_t * | import | ) |
Definition at line 287 of file cl_game_multiplayer.cpp.
References cgi, 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_t::isMultiplayer, cgame_export_t::MapInfo(), cgame_export_t::menu, cgame_export_t::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.
Referenced by GAME_MP_AddChatMessage().
|
static |
Definition at line 233 of file cl_game_multiplayer.cpp.
Referenced by GAME_MP_InitStartup(), and GAME_MP_Shutdown().