|
UFO: Alien Invasion
|
Shared game type headers. More...


Go to the source code of this file.
Macros | |
| #define | GAME_IsSingleplayer() |
| #define | CGAME_HARD_LINKED_FUNCTIONS |
Functions | |
| bool | GAME_IsMultiplayer (void) |
| void | GAME_ParseModes (const char *name, const char **text) |
| void | GAME_InitStartup (void) |
| void | GAME_Shutdown (void) |
| void | GAME_InitUIData (void) |
| Fills the game mode list entries with the parsed values from the script. | |
| void | GAME_UnloadGame (void) |
| void | GAME_SetMode (const struct cgame_export_s *gametype) |
| void | GAME_ReloadMode (void) |
| void | GAME_Init (bool load) |
| void | GAME_DisplayItemInfo (uiNode_t *node, const char *string) |
Shows game type specific item information (if it's not resolvable via objDef_t). | |
| bool | GAME_ItemIsUseable (const objDef_t *od) |
| void | GAME_HandleResults (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. | |
| void | GAME_SpawnSoldiers (void) |
| Called during startup of mission to send team info. | |
| void | GAME_StartMatch (void) |
| const char * | GAME_GetRelativeSavePath (char *bufbuf, size_t bufSize) |
| const char * | GAME_GetAbsoluteSavePath (char *bufbuf, size_t bufSize) |
| equipDef_t * | GAME_GetEquipmentDefinition (void) |
| bool | GAME_HandleServerCommand (const char *command, dbuffer *msg) |
| void | GAME_AddChatMessage (const char *format,...) |
| void | GAME_CharacterCvars (const character_t *chr) |
| character_t * | GAME_GetCharacter (int index) |
| Returns a character that can be used to store the game type specific character values. | |
| character_t * | GAME_GetCharacterByUCN (int ucn) |
| Returns a character that can be used to store the game type specific character values. | |
| size_t | GAME_GetCharacterArraySize (void) |
| const char * | GAME_GetCurrentName (void) |
| void | GAME_ResetCharacters (void) |
| Reset all characters in the static character array. | |
| void | GAME_GenerateTeam (const char *teamDefID, const equipDef_t *ed, int teamMembers) |
| void | GAME_AppendTeamMember (int memberIndex, const char *teamDefID, const equipDef_t *ed) |
| void | GAME_StartBattlescape (bool isTeamPlay) |
Called when the server sends the EV_START event. | |
| void | GAME_InitMissionBriefing (const char *title) |
| void | GAME_EndBattlescape (void) |
| This is called when a client quits the battlescape. | |
| void | GAME_EndRoundAnnounce (int playerNum, int team) |
| Send end round announcements. | |
| bool | GAME_TeamIsKnown (const teamDef_t *teamDef) |
| void | GAME_NotifyEvent (event_t eventType) |
| const char * | GAME_GetTeamDef (void) |
| void | GAME_Drop (void) |
| void | GAME_Frame (void) |
| Called every frame and allows us to hook into the current running game mode. | |
| void | GAME_DrawBaseLayout (int baseIdx, int x, int y, int totalMarge, int w, int h, int padding, const vec4_t bgcolor, const vec4_t color) |
| void | GAME_DrawBaseLayoutTooltip (int baseIdx, int x, int y) |
| Cgame callback to draw tooltip for baselayout UI node. | |
| const char * | GAME_GetModelForItem (const objDef_t *od, struct uiModel_s **menuModel) |
| const mapDef_t * | GAME_GetCurrentSelectedMap (void) |
| void | GAME_SwitchCurrentSelectedMap (int step) |
| bool | GAME_IsTeamEmpty (void) |
| int | GAME_GetCurrentTeam (void) |
| void | GAME_DrawMap (geoscapeData_t *data) |
| void | GAME_DrawMapMarkers (uiNode_t *node) |
| void | GAME_MapClick (uiNode_t *node, int x, int y, const vec2_t pos) |
| void | GAME_SetServerInfo (const char *server, const char *serverport) |
| character_t * | GAME_GetSelectedChr (void) |
| Returns the currently selected character. | |
| int | GAME_GetChrMaxLoad (const character_t *chr) |
| Returns the max weight the given character can carry. | |
| const equipDef_t * | GAME_ChangeEquip (const linkedList_t *equipmentList, changeEquipType_t changeType, const char *equipID) |
| Changed the given cvar to the next/prev equipment definition. | |
Variables | |
| geoscapeData_t | geoscapeData |
Shared game type headers.
Definition in file cl_game.h.
| #define CGAME_HARD_LINKED_FUNCTIONS |
| #define GAME_IsSingleplayer | ( | ) |
Definition at line 36 of file cl_game.h.
Referenced by CL_FixActorSkinIDX().
| void GAME_AddChatMessage | ( | const char * | format, |
| ... ) |
Definition at line 370 of file cl_game.cpp.
References format(), GAME_AddChatMessage(), GAME_GetCurrentType(), Q_vsnprintf(), S_StartLocalSample(), and SND_VOLUME_DEFAULT.
Referenced by CL_ParseServerMessage(), GAME_AddChatMessage(), GAME_Init(), Irc_AppendToBuffer(), and Irc_Client_CmdPrivmsg().
| void GAME_AppendTeamMember | ( | int | memberIndex, |
| const char * | teamDefID, | ||
| const equipDef_t * | ed ) |
Definition at line 252 of file cl_game.cpp.
References chrDisplayList, CL_GenerateCharacter(), cls, Com_Error(), Com_GetUGVByIDSilent(), InventoryInterface::EquipActor(), ERR_DROP, GAME_AppendTeamMember(), GAME_GetCharacter(), GAME_GetChrMaxLoad(), character_t::head, character_t::headSkin, client_static_t::i, teamDef_t::id, INVSH_GetItemByID(), LIST_AddPointer(), character_t::name, teamDef_t::onlyWeapon, character_t::path, teamDef_t::robot, character_t::teamDef, UI_ExecuteConfunc(), and ugv_t::weapon.
Referenced by GAME_AppendTeamMember(), GAME_GenerateTeam(), GAME_GetImportData(), and GAME_Init().
| const equipDef_t * GAME_ChangeEquip | ( | const linkedList_t * | equipmentList, |
| changeEquipType_t | changeType, | ||
| const char * | equipID ) |
Changed the given cvar to the next/prev equipment definition.
Definition at line 1592 of file cl_game.cpp.
References BACKWARD, Com_Error(), csi, linkedList_t::data, csi_t::eds, ERR_DROP, FORWARD, GAME_ChangeEquip(), index, INV_GetEquipmentDefinitionByID(), LIST_ContainsString(), LIST_Foreach, LIST_IsEmpty(), linkedList_t::next, csi_t::numEDs, and Q_streq.
Referenced by GAME_ChangeEquip(), GAME_GetImportData(), and GAME_GetModelForItem().
| void GAME_CharacterCvars | ( | const character_t * | chr | ) |
Definition at line 1451 of file cl_game.cpp.
References GAME_CharacterCvars(), and GAME_GetCurrentType().
Referenced by CL_UpdateCharacterValues(), GAME_CharacterCvars(), and GAME_Init().
Shows game type specific item information (if it's not resolvable via objDef_t).
| [in] | node | The menu node to show the information in. |
| [in] | string | The id of the 'thing' to show information for. |
Definition at line 338 of file cl_game.cpp.
References GAME_DisplayItemInfo(), GAME_GetCurrentType(), cgame_export_t::GetModelForItem(), and UI_DrawModelNode().
Referenced by uiItemNode::draw(), GAME_DisplayItemInfo(), and GAME_Init().
| void GAME_DrawBaseLayout | ( | int | baseIdx, |
| int | x, | ||
| int | y, | ||
| int | totalMarge, | ||
| int | w, | ||
| int | h, | ||
| int | padding, | ||
| const vec4_t | bgcolor, | ||
| const vec4_t | color ) |
Definition at line 1508 of file cl_game.cpp.
References GAME_DrawBaseLayout(), and GAME_GetCurrentType().
Referenced by uiBaseLayoutNode::draw(), GAME_DrawBaseLayout(), and GAME_Init().
Cgame callback to draw tooltip for baselayout UI node.
| [in] | baseIdx | Numeric index of the base |
| [in] | x | Horizontal screen position |
| [in] | y | Vertical screen position |
Definition at line 1521 of file cl_game.cpp.
References GAME_DrawBaseLayoutTooltip(), and GAME_GetCurrentType().
Referenced by uiBaseLayoutNode::drawTooltip(), GAME_DrawBaseLayoutTooltip(), and GAME_Init().
| void GAME_DrawMap | ( | geoscapeData_t * | data | ) |
Definition at line 931 of file cl_game.cpp.
References data, GAME_DrawMap(), and GAME_GetCurrentType().
Referenced by uiGeoscapeNode::draw(), GAME_DrawMap(), and GAME_GetModelForItem().
Definition at line 938 of file cl_game.cpp.
References GAME_DrawMapMarkers(), and GAME_GetCurrentType().
Referenced by uiGeoscapeNode::draw(), GAME_DrawMapMarkers(), and GAME_GetModelForItem().
Definition at line 1467 of file cl_game.cpp.
References GAME_Drop(), GAME_GetCurrentType(), GAME_SetMode(), GAME_UnloadGame(), SV_Shutdown(), and UI_InitStack().
Referenced by CL_Drop(), GAME_Drop(), and GAME_Init().
This is called when a client quits the battlescape.
Definition at line 314 of file cl_game.cpp.
References cls, Com_Printf(), Cvar_Set(), GAME_EndBattlescape(), InventoryInterface::GetUsedSlots(), and client_static_t::i.
Referenced by CL_Disconnect(), GAME_EndBattlescape(), and GAME_Init().
Send end round announcements.
| playerNum | The server player number of the player that has ended the round |
| team | The team the player is in |
Definition at line 325 of file cl_game.cpp.
References GAME_EndRoundAnnounce(), and GAME_GetCurrentType().
Referenced by CL_EndRoundAnnounce(), GAME_EndRoundAnnounce(), and GAME_Init().
Called every frame and allows us to hook into the current running game mode.
Definition at line 1496 of file cl_game.cpp.
References cls, client_static_t::frametime, GAME_Frame(), GAME_GetCurrentType(), key_console, and client_static_t::keyDest.
Referenced by CL_Frame(), GAME_Frame(), and GAME_Init().
| void GAME_GenerateTeam | ( | const char * | teamDefID, |
| const equipDef_t * | ed, | ||
| int | teamMembers ) |
Definition at line 276 of file cl_game.cpp.
References Com_Error(), ERR_DROP, GAME_AppendTeamMember(), GAME_GenerateTeam(), GAME_GetCharacterArraySize(), GAME_ResetCharacters(), and i.
Referenced by GAME_AutoTeam(), GAME_GenerateTeam(), GAME_Init(), and GAME_Spawn().
| const char * GAME_GetAbsoluteSavePath | ( | char * | buf, |
| size_t | bufSize ) |
Definition at line 1417 of file cl_game.cpp.
References bufSize, Com_sprintf(), FS_Gamedir(), GAME_GetAbsoluteSavePath(), and GAME_GetCurrentName().
Referenced by GAME_GetAbsoluteSavePath(), GAME_GetImportData(), GAME_Init(), GAME_TeamDelete_f(), and GAME_TeamSlotComments_f().
| character_t * GAME_GetCharacter | ( | int | index | ) |
Returns a character that can be used to store the game type specific character values.
| index | The index of the character array. This value must be greater than 0 and not bigger than the value GAME_GetCharacterArraySize returned |
Definition at line 197 of file cl_game.cpp.
References characters, Com_Error(), ERR_DROP, GAME_GetCharacter(), index, and lengthof.
Referenced by GAME_AppendTeamMember(), GAME_GetCharacter(), GAME_Init(), and GAME_LoadTeamInfo().
| size_t GAME_GetCharacterArraySize | ( | void | ) |
Definition at line 227 of file cl_game.cpp.
References characters, GAME_GetCharacterArraySize(), and lengthof.
Referenced by GAME_AutoTeam_f(), GAME_GenerateTeam(), GAME_GetCharacterArraySize(), GAME_GetImportData(), GAME_Init(), GAME_LoadTeamInfo(), GAME_Spawn(), and cgame_import_t::size_t().
| character_t * GAME_GetCharacterByUCN | ( | int | ucn | ) |
Returns a character that can be used to store the game type specific character values.
| ucn | The unique character number |
null if no character with the specified ucn was found. Definition at line 211 of file cl_game.cpp.
References characters, GAME_GetCharacterByUCN(), i, lengthof, and character_t::ucn.
Referenced by GAME_GetCharacterByUCN(), and GAME_Init().
| int GAME_GetChrMaxLoad | ( | const character_t * | chr | ) |
Returns the max weight the given character can carry.
| [in] | chr | The character to find the max load for. |
NONE. Definition at line 1577 of file cl_game.cpp.
References ABILITY_POWER, GAME_GetChrMaxLoad(), GAME_GetCurrentType(), NONE, character_t::score, and chrScoreGlobal_t::skills.
Referenced by CL_ActorInvMove(), GAME_AppendTeamMember(), GAME_GetChrMaxLoad(), GAME_GetImportData(), GAME_GetModelForItem(), GAME_LoadCharacter(), HUD_UpdateActorLoad_f(), cgame_import_t::int(), INV_MoveItem(), and INV_UpdateActorLoad_f().
| const char * GAME_GetCurrentName | ( | void | ) |
Definition at line 232 of file cl_game.cpp.
References GAME_GetCurrentName(), GAME_GetCurrentType(), and cgame_export_t::menu.
Referenced by GAME_GetAbsoluteSavePath(), GAME_GetCurrentName(), GAME_GetRelativeSavePath(), GAME_Init(), GAME_WebDelete(), GAME_WebDownloadFromUser(), GAME_WebListForUser(), GAME_WebUpload(), WEB_DeleteCGame_f(), WEB_DownloadCGame_f(), WEB_ListCGame_f(), and WEB_UploadCGame_f().
Definition at line 921 of file cl_game.cpp.
References cls, Com_GetMapDefByIDX(), client_static_t::currentSelectedMap, and GAME_GetCurrentSelectedMap().
Referenced by GAME_GetCurrentSelectedMap(), GAME_GetImportData(), and GAME_GetModelForItem().
Definition at line 926 of file cl_game.cpp.
References cls, GAME_GetCurrentTeam(), and client_static_t::team.
Referenced by GAME_GetCurrentTeam(), GAME_GetImportData(), GAME_GetModelForItem(), and cgame_import_t::int().
| equipDef_t * GAME_GetEquipmentDefinition | ( | void | ) |
Definition at line 1423 of file cl_game.cpp.
References equipDefStandard, GAME_GetCurrentType(), GAME_GetEquipmentDefinition(), and cgame_export_t::GetEquipmentDefinition().
Referenced by CL_InvReload(), GAME_GetEquipment(), GAME_GetEquipmentDefinition(), GAME_Init(), GAME_LoadTeam(), and GAME_SaveTeam().
| const char * GAME_GetModelForItem | ( | const objDef_t * | od, |
| struct uiModel_s ** | menuModel ) |
| const char * GAME_GetRelativeSavePath | ( | char * | buf, |
| size_t | bufSize ) |
Definition at line 1411 of file cl_game.cpp.
References bufSize, Com_sprintf(), GAME_GetCurrentName(), and GAME_GetRelativeSavePath().
Referenced by GAME_GetImportData(), GAME_GetRelativeSavePath(), GAME_GetTeamFileName(), GAME_Init(), GAME_TeamGetFreeFilename(), GAME_TeamSlotComments_f(), WEB_CGameDownloadFromUser(), and WEB_UploadCGame_f().
| character_t * GAME_GetSelectedChr | ( | void | ) |
Returns the currently selected character.
nullptr. Definition at line 1555 of file cl_game.cpp.
References chrDisplayList, Cvar_GetInteger(), GAME_GetCurrentType(), GAME_GetSelectedChr(), cgame_export_t::GetSelectedChr(), and LIST_Foreach.
Referenced by GAME_GetModelForItem(), GAME_GetSelectedChr(), INV_MoveItem(), and INV_UpdateActorLoad_f().
| const char * GAME_GetTeamDef | ( | void | ) |
Definition at line 1251 of file cl_game.cpp.
References Cvar_GetString(), GAME_GetCurrentType(), GAME_GetTeamDef(), and cgame_export_t::GetTeamDef().
Referenced by GAME_AutoTeam(), GAME_GetTeamDef(), GAME_Init(), GAME_ItemIsUseable(), and GAME_Spawn().
| void GAME_HandleResults | ( | 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.
| msg | The network message buffer |
| winner | The winning team or -1 if it was a draw |
| 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 msission |
Definition at line 1135 of file cl_game.cpp.
References CL_Drop(), GAME_GetCurrentType(), GAME_HandleResults(), and MAX_TEAMS.
Referenced by CL_ParseResults(), GAME_HandleResults(), and GAME_Init().
| bool GAME_HandleServerCommand | ( | const char * | command, |
| dbuffer * | msg ) |
Definition at line 361 of file cl_game.cpp.
References GAME_GetCurrentType(), and GAME_HandleServerCommand().
Referenced by CL_ConnectionlessPacket(), GAME_HandleServerCommand(), and GAME_Init().
| void GAME_Init | ( | bool | load | ) |
References bufSize, format(), GAME_AddChatMessage(), GAME_AppendTeamMember(), GAME_CharacterCvars(), GAME_DisplayItemInfo(), GAME_DrawBaseLayout(), GAME_DrawBaseLayoutTooltip(), GAME_Drop(), GAME_EndBattlescape(), GAME_EndRoundAnnounce(), GAME_Frame(), GAME_GenerateTeam(), GAME_GetAbsoluteSavePath(), GAME_GetCharacter(), GAME_GetCharacterArraySize(), GAME_GetCharacterByUCN(), GAME_GetCurrentName(), GAME_GetEquipmentDefinition(), GAME_GetRelativeSavePath(), GAME_GetTeamDef(), GAME_HandleResults(), GAME_HandleServerCommand(), GAME_Init(), GAME_InitMissionBriefing(), GAME_ItemIsUseable(), GAME_NotifyEvent(), GAME_ResetCharacters(), GAME_SpawnSoldiers(), GAME_StartBattlescape(), GAME_StartMatch(), GAME_TeamIsKnown(), index, and MAX_TEAMS.
Referenced by GAME_Init().
| void GAME_InitMissionBriefing | ( | const char * | title | ) |
Definition at line 1311 of file cl_game.cpp.
References CL_GetConfigString(), CS_VICTORY_CONDITIONS, GAME_GetCurrentType(), GAME_InitMissionBriefing(), LIST_AddString(), LIST_IsEmpty(), Q_strvalid, TEXT_MISSIONBRIEFING, TEXT_MISSIONBRIEFING_TITLE, TEXT_MISSIONBRIEFING_VICTORY_CONDITIONS, UI_PushWindow(), UI_RegisterLinkedListText(), and UI_RegisterText().
Referenced by CL_ConnectionlessPacket(), CL_ViewLoadMedia(), GAME_Init(), GAME_InitMissionBriefing(), and GAME_StartBattlescape().
Definition at line 1669 of file cl_game.cpp.
References Cmd_AddCommand(), Cmd_RegisterCmdListener(), cmdListener(), Cvar_RegisterCvarListener(), cvarListener(), GAME_Abort_f(), GAME_ActorSelect_f(), GAME_AutoTeam_f(), GAME_Exit_f(), GAME_InitStartup(), GAME_LoadTeam_f(), GAME_SaveTeam_f(), GAME_SaveTeamState_f(), GAME_SetMode_f(), GAME_TeamDelete_f(), GAME_TeamSlotComments_f(), GAME_ToggleActorForTeam_f(), GAME_UpdateTeamMenuParameters_f(), and MAP_InitCallbacks().
Referenced by CL_InitLocal(), GAME_InitStartup(), and CampaignTest::SetUpTestCase().
Fills the game mode list entries with the parsed values from the script.
Definition at line 1649 of file cl_game.cpp.
References cgameTypes, Com_Printf(), GAME_GetCGameAPI_(), GAME_InitUIData(), GAME_UnloadGame(), i, cgame_export_t::isMultiplayer, cgameType_t::name, numCGameTypes, UI_ExecuteConfunc(), and cgameType_t::window.
Referenced by CLMN_Init(), and GAME_InitUIData().
| bool GAME_IsMultiplayer | ( | void | ) |
Definition at line 299 of file cl_game.cpp.
References GAME_GetCurrentType(), GAME_IsMultiplayer(), and cgame_export_t::isMultiplayer.
Referenced by CL_FixActorSkinIDX(), CL_GenerateCharacter(), CL_SendCommand(), GAME_IsMultiplayer(), and SP_worldspawn().
| bool GAME_IsTeamEmpty | ( | void | ) |
Definition at line 388 of file cl_game.cpp.
References chrDisplayList, GAME_IsTeamEmpty(), and LIST_IsEmpty().
Referenced by cgame_import_t::bool(), GAME_GetImportData(), GAME_GetModelForItem(), GAME_IsTeamEmpty(), GAME_LoadDefaultTeam(), and GAME_LoadTeam_f().
| bool GAME_ItemIsUseable | ( | const objDef_t * | od | ) |
Definition at line 1104 of file cl_game.cpp.
References CHRSH_IsArmourUseableForTeam(), Com_GetTeamDefinitionByID(), GAME_GetCurrentType(), GAME_GetTeamDef(), GAME_ItemIsUseable(), and objDef_t::isArmour().
Referenced by CL_ActorGetContainerForReload(), CL_ActorReload(), GAME_Init(), GAME_ItemIsUseable(), HUD_ShotReserve_f(), HUD_UpdateActorFireMode(), HUD_UpdateReactionFiremodes(), INV_DecreaseItem_f(), INV_IncreaseItem_f(), INV_ItemDescription(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_ContainerItemIteratorNext(), UI_ContainerNodeUpdateEquipment(), and UI_GetItemTooltip().
Definition at line 945 of file cl_game.cpp.
References GAME_GetCurrentType(), and GAME_MapClick().
Referenced by GAME_GetModelForItem(), GAME_MapClick(), and uiGeoscapeNode::onLeftClick().
Definition at line 1432 of file cl_game.cpp.
References GAME_GetCurrentType(), and GAME_NotifyEvent().
Referenced by CL_ExecuteBattlescapeEvent(), CL_ParseEvent(), GAME_Init(), and GAME_NotifyEvent().
| void GAME_ParseModes | ( | const char * | name, |
| const char ** | text ) |
Definition at line 999 of file cl_game.cpp.
References cgame_vals, cgameTypes, Com_ParseBlock(), Com_Printf(), GAME_ParseModes(), i, cgameType_t::id, MAX_CGAMETYPES, name, numCGameTypes, OBJZERO, Q_streq, Q_strncpyz(), and Sys_Error().
Referenced by CL_ParseClientData(), and GAME_ParseModes().
Definition at line 290 of file cl_game.cpp.
References GAME_GetCurrentType(), GAME_ReloadMode(), and GAME_SetMode().
Referenced by GAME_GetImportData(), GAME_ReloadMode(), GAME_SetMode(), VID_Restart_f(), and cgame_import_t::void().
Reset all characters in the static character array.
Definition at line 244 of file cl_game.cpp.
References characters, chrDisplayList, GAME_ResetCharacters(), i, LIST_Delete(), MAX_ACTIVETEAM, and UI_ExecuteConfunc().
Referenced by GAME_GenerateTeam(), GAME_Init(), GAME_LoadTeamInfo(), GAME_ResetCharacters(), and GAME_SetMode().
| void GAME_SetMode | ( | const struct cgame_export_s * | gametype | ) |
References GAME_ReloadMode(), and GAME_SetMode().
| void GAME_SetServerInfo | ( | const char * | server, |
| const char * | serverport ) |
Definition at line 347 of file cl_game.cpp.
References cls, GAME_SetServerInfo(), Q_strncpyz(), client_static_t::servername, and client_static_t::serverport.
Referenced by GAME_GetImportData(), GAME_GetModelForItem(), and GAME_SetServerInfo().
Definition at line 1690 of file cl_game.cpp.
References cgameTypes, characters, Cmd_UnRegisterCmdListener(), cmdListener(), Cvar_UnRegisterCvarListener(), cvarListener(), equipDefStandard, GAME_Shutdown(), i, lengthof, MAP_ShutdownCallbacks(), numCGameTypes, and OBJZERO.
Referenced by CL_Shutdown(), and GAME_Shutdown().
Called during startup of mission to send team info.
Definition at line 1378 of file cl_game.cpp.
References clientBattleScape_t::chrList, cl, cls, Com_Printf(), GAME_GetCurrentType(), GAME_SendCurrentTeamSpawningInfo(), GAME_Spawn(), GAME_SpawnSoldiers(), InventoryInterface::GetUsedSlots(), client_static_t::i, LIST_IsEmpty(), NET_WriteMsg(), and client_static_t::netStream.
Referenced by CL_SpawnSoldiers_f(), GAME_Init(), and GAME_SpawnSoldiers().
| void GAME_StartBattlescape | ( | bool | isTeamPlay | ) |
Called when the server sends the EV_START event.
| isTeamPlay | true if the game is a teamplay round. This can be interesting for multiplayer based game types |
Definition at line 1296 of file cl_game.cpp.
References _, cl, CL_GetConfigString(), CS_MAPTITLE, Cvar_Set(), GAME_GetCurrentType(), GAME_InitMissionBriefing(), GAME_StartBattlescape(), HUD_InitUI(), and clientBattleScape_t::mapMaxLevel.
Referenced by CL_StartGame(), GAME_Init(), and GAME_StartBattlescape().
Definition at line 1399 of file cl_game.cpp.
References clientBattleScape_t::chrList, cl, clc_stringcmd, cls, GAME_InitializeBattlescape(), GAME_StartMatch(), LIST_IsEmpty(), NET_STATE_STARTMATCH, NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), and client_static_t::netStream.
Referenced by CL_StartMatch_f(), GAME_Init(), and GAME_StartMatch().
Definition at line 912 of file cl_game.cpp.
References cls, csi, client_static_t::currentSelectedMap, GAME_SwitchCurrentSelectedMap(), and csi_t::numMDs.
Referenced by GAME_GetImportData(), GAME_GetModelForItem(), GAME_SwitchCurrentSelectedMap(), and cgame_import_t::void().
| bool GAME_TeamIsKnown | ( | const teamDef_t * | teamDef | ) |
Definition at line 1439 of file cl_game.cpp.
References GAME_GetCurrentType(), and GAME_TeamIsKnown().
Referenced by CL_ActorAppear(), CL_AddTargetingBox(), GAME_Init(), and GAME_TeamIsKnown().
Definition at line 900 of file cl_game.cpp.
References client_static_t::cgameLibrary, cls, Com_Printf(), GAME_SetMode(), and GAME_UnloadGame().
Referenced by CL_Shutdown(), GAME_Drop(), GAME_Exit_f(), GAME_GetCGameAPI(), GAME_InitUIData(), GAME_SetMode_f(), and GAME_UnloadGame().
|
extern |
Definition at line 147 of file cl_game.cpp.
Referenced by GAME_GetImportData(), and uiGeoscapeNode::onLoading().