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. More... | |
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. More... | |
character_t * | GAME_CP_GetSelectedChr (void) |
Returns the currently selected character. More... | |
void | GAME_CP_Drop (void) |
void | GAME_CP_InitializeBattlescape (dbuffer *msg, const linkedList_t *team) |
Changes some actor states for a campaign game. More... | |
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. More... | |
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_s::assignedMissions, CL_GetRankByIdx(), cgame_import_s::Cvar_Set(), rank_s::image, KILLED_CIVILIANS, KILLED_ENEMIES, KILLED_TEAM, chrScoreGlobal_s::kills, rank_s::name, chrScoreGlobal_s::rank, character_s::score, and rank_s::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, and base_s::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(), and base_s::name.
Referenced by GetCGameAPI().
Definition at line 371 of file cp_cgame_callbacks.cpp.
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(), CP_OnGeoscape(), and ccs_s::curCampaign.
Referenced by GetCGameAPI().
equipDef_t* GAME_CP_GetEquipmentDefinition | ( | void | ) |
Definition at line 474 of file cp_cgame_callbacks.cpp.
References ccs, and ccs_s::eMission.
Referenced by GetCGameAPI().
const char* GAME_CP_GetItemModel | ( | const char * | string | ) |
Definition at line 499 of file cp_cgame_callbacks.cpp.
References AIR_GetAircraftSilent(), technology_s::mdl, RS_GetTechByProvided(), and aircraft_s::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 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, cgame_import_s::Com_ValueToStr(), ccs_s::curCampaign, campaign_s::team, 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 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_s::battleParameters, ccs, mission_s::crashed, mapDef_s::description, mission_s::mapDef, battleParam_s::mission, mapDef_s::missionBriefing, Q_strvalid, and mapDef_s::victoryCondition.
Referenced by GetCGameAPI().
Definition at line 521 of file cp_cgame_callbacks.cpp.
References CP_InitStartup(), CP_ParseCampaignData(), CP_ResetCampaignData(), cgame_import_s::csi, cgame_import_s::Cvar_ForceSet(), 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_s::aliensKilled, ccs_s::aliensKilled, missionResults_s::aliensStunned, missionResults_s::aliensSurvived, ccs_s::battleParameters, ccs, CHAR_ParseData(), missionResults_s::civiliansKilled, missionResults_s::civiliansKilledFriendlyFire, missionResults_s::civiliansSurvived, DRAW, GEO_GetMissionAircraft, i, LOST, MAX_TEAMS, MIS_InitResultScreen(), missionResults_s::mission, battleParam_s::mission, ccs_s::missionResultCallback, mission_s::missionResults, missionResults_s::ownKilled, missionResults_s::ownKilledFriendlyFire, missionResults_s::ownStunned, missionResults_s::ownSurvived, battleParam_s::retriable, missionResults_s::state, TEAM_CIVILIAN, ccs_s::updateCharacters, and WON.
Referenced by GetCGameAPI().
Definition at line 541 of file cp_cgame_callbacks.cpp.
References 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_s::acTeam, CP_CleanTempInventory(), GEO_GetMissionAircraft, aircraft_s::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, CHRSH_IsTeamDefAlien(), ERR_DROP, teamDef_s::id, teamDef_s::idx, RS_IsResearched_ptr(), and ccs_s::teamDefTechs.
Referenced by GetCGameAPI().
const cgame_import_t* cgi |
Definition at line 39 of file cp_cgame_callbacks.cpp.