|
UFO: Alien Invasion
|
#include "../cl_game.h"

Go to the source code of this file.
Functions | |
| const char * | GAME_CP_GetItemModel (const char *string) |
| void | GAME_CP_InitStartup (void) |
| void | GAME_CP_Shutdown (void) |
| bool | GAME_CP_Spawn (linkedList_t **chrList) |
| void | GAME_CP_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. | |
| bool | GAME_CP_ItemIsUseable (const objDef_t *od) |
| equipDef_t * | GAME_CP_GetEquipmentDefinition (void) |
| void | GAME_CP_CharacterCvars (const character_t *chr) |
| bool | GAME_CP_TeamIsKnown (const teamDef_t *teamDef) |
| Checks whether the team is known at this stage already. | |
| character_t * | GAME_CP_GetSelectedChr (void) |
| Returns the currently selected character. | |
| void | GAME_CP_Drop (void) |
| void | GAME_CP_InitializeBattlescape (dbuffer *msg, const linkedList_t *team) |
| Changes some actor states for a campaign game. | |
| void | GAME_CP_InitMissionBriefing (const char **title, linkedList_t **victoryConditionsMsgIDs, linkedList_t **missionBriefingMsgIDs) |
| void | GAME_CP_Frame (float secondsSinceLastFrame) |
| const char * | GAME_CP_GetTeamDef (void) |
| void | GAME_CP_HandleBaseClick (int baseIdx, int key, int col, int row) |
| void | GAME_CP_DrawBase (int baseIdx, int x, int y, int w, int h, int col, int row, bool hover, int overlap) |
| void | GAME_CP_DrawBaseTooltip (int baseIdx, int x, int y, int col, int row) |
| void | GAME_CP_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_CP_DrawBaseLayoutTooltip (int baseIdx, int x, int y) |
| Draws basename as tooltip for baselayout widget. | |
Variables | |
| const cgame_import_t * | cgi |
| void GAME_CP_CharacterCvars | ( | const character_t * | chr | ) |
Definition at line 479 of file cp_cgame_callbacks.cpp.
References _, chrScoreGlobal_t::assignedMissions, cgi, CL_GetRankByIdx(), rank_t::image, KILLED_CIVILIANS, KILLED_ENEMIES, KILLED_TEAM, chrScoreGlobal_t::kills, rank_t::name, chrScoreGlobal_t::rank, character_t::score, and rank_t::shortname.
Referenced by GetCGameAPI().
| void GAME_CP_DrawBase | ( | int | baseIdx, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | col, | ||
| int | row, | ||
| bool | hover, | ||
| int | overlap ) |
| void GAME_CP_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 406 of file cp_cgame_callbacks.cpp.
References B_GetBaseByIDX(), B_GetBuildingAt, B_IsTileBlocked, BASE_SIZE, cgi, and base_t::founded.
Referenced by GetCGameAPI().
Draws basename as tooltip for baselayout widget.
| [in] | baseIdx | Numeric index of the base to show |
| [in] | x | Horizontal screen cordinate |
| [in] | y | Vertical screen cordinate |
Definition at line 398 of file cp_cgame_callbacks.cpp.
References B_GetFoundedBaseByIDX(), cgi, and base_t::name.
Referenced by GetCGameAPI().
Definition at line 371 of file cp_cgame_callbacks.cpp.
References cgi.
Referenced by GetCGameAPI().
| void GAME_CP_Frame | ( | float | secondsSinceLastFrame | ) |
Definition at line 380 of file cp_cgame_callbacks.cpp.
References ccs, CP_CampaignRun(), CP_IsRunning(), and CP_OnGeoscape().
Referenced by GetCGameAPI().
| equipDef_t * GAME_CP_GetEquipmentDefinition | ( | void | ) |
| const char * GAME_CP_GetItemModel | ( | const char * | string | ) |
Definition at line 499 of file cp_cgame_callbacks.cpp.
References AIR_GetAircraftSilent(), technology_t::mdl, RS_GetTechByProvided(), and aircraft_t::tech.
Referenced by GetCGameAPI().
| character_t * GAME_CP_GetSelectedChr | ( | void | ) |
Returns the currently selected character.
nullptr. Definition at line 363 of file cp_cgame_callbacks.cpp.
References cgi, Employee::chr, and E_GetEmployeeFromChrUCN().
Referenced by GetCGameAPI().
| const char * GAME_CP_GetTeamDef | ( | void | ) |
Definition at line 428 of file cp_cgame_callbacks.cpp.
References ccs, cgi, and V_TEAM.
Referenced by E_CreateEmployee(), and GetCGameAPI().
| void GAME_CP_InitializeBattlescape | ( | dbuffer * | msg, |
| const linkedList_t * | team ) |
Changes some actor states for a campaign game.
| team | The team to change the states for |
| msg | The message buffer to write the states to |
Definition at line 458 of file cp_cgame_callbacks.cpp.
References cgi, clc_initactorstates, LIST_Foreach, and NONE.
Referenced by GetCGameAPI().
| void GAME_CP_InitMissionBriefing | ( | const char ** | title, |
| linkedList_t ** | victoryConditionsMsgIDs, | ||
| linkedList_t ** | missionBriefingMsgIDs ) |
Definition at line 434 of file cp_cgame_callbacks.cpp.
References _, ccs, cgi, mission_t::crashed, mapDef_t::description, mission_t::mapDef, battleParam_t::mission, mapDef_t::missionBriefing, Q_strvalid, and mapDef_t::victoryCondition.
Referenced by GetCGameAPI().
Definition at line 521 of file cp_cgame_callbacks.cpp.
References cgameCallbacks, cgi, CP_InitStartup(), CP_ParseCampaignData(), CP_ResetCampaignData(), INVSH_InitCSI(), and SAV_InitCallbacks().
Referenced by GetCGameAPI().
| bool GAME_CP_ItemIsUseable | ( | const objDef_t * | od | ) |
Definition at line 337 of file cp_cgame_callbacks.cpp.
References RS_GetTechForItem(), and RS_IsResearched_ptr().
Referenced by GetCGameAPI().
| void GAME_CP_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.
| 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 |
| nextmap | If it was a follow-up map of the same mission the attacker team, the second the victim team |
Definition at line 201 of file cp_cgame_callbacks.cpp.
References AII_CollectingItems(), AL_AddAlienTypeToAircraftCargo_(), missionResults_t::aliensKilled, missionResults_t::aliensStunned, missionResults_t::aliensSurvived, ccs, cgi, CHAR_ParseData(), missionResults_t::civiliansKilled, missionResults_t::civiliansKilledFriendlyFire, missionResults_t::civiliansSurvived, DRAW, GEO_GetMissionAircraft, i, LOST, MAX_TEAMS, MIS_InitResultScreen(), battleParam_t::mission, missionResults_t::mission, missionResults_t::ownKilled, missionResults_t::ownKilledFriendlyFire, missionResults_t::ownStunned, missionResults_t::ownSurvived, battleParam_t::retriable, missionResults_t::state, TEAM_CIVILIAN, and WON.
Referenced by GetCGameAPI().
Definition at line 541 of file cp_cgame_callbacks.cpp.
References cgameCallbacks, cgi, CP_ResetCampaignData(), CP_Shutdown(), and SAV_ShutdownCallbacks().
Referenced by GetCGameAPI().
| bool GAME_CP_Spawn | ( | linkedList_t ** | chrList | ) |
Definition at line 320 of file cp_cgame_callbacks.cpp.
References aircraft_t::acTeam, cgi, CP_CleanTempInventory(), GEO_GetMissionAircraft, aircraft_t::homebase, and LIST_Foreach.
Referenced by GetCGameAPI().
| bool GAME_CP_TeamIsKnown | ( | const teamDef_t * | teamDef | ) |
Checks whether the team is known at this stage already.
| [in] | teamDef | The team definition of the alien team |
true if known, false otherwise. Definition at line 348 of file cp_cgame_callbacks.cpp.
References ccs, cgi, CHRSH_IsTeamDefAlien(), ERR_DROP, teamDef_t::id, teamDef_t::idx, and RS_IsResearched_ptr().
Referenced by GetCGameAPI().
|
extern |
Definition at line 39 of file cp_cgame_callbacks.cpp.