UFO: Alien Invasion
Loading...
Searching...
No Matches
cp_cgame_callbacks.h
Go to the documentation of this file.
1
4
5/*
6Copyright (C) 2002-2025 UFO: Alien Invasion.
7
8This program is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License
10as published by the Free Software Foundation; either version 2
11of the License, or (at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
17See the GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22*/
23
24#pragma once
25
26#include "../cl_game.h"
27
28extern const cgame_import_t* cgi;
29
30const char* GAME_CP_GetItemModel(const char* string);
31void GAME_CP_InitStartup(void);
32void GAME_CP_Shutdown(void);
33bool GAME_CP_Spawn(linkedList_t** chrList);
34void GAME_CP_Results(dbuffer* msg, int winner, int* numSpawned, int* numAlive, int numKilled[][MAX_TEAMS], int numStunned[][MAX_TEAMS], bool nextmap);
35bool GAME_CP_ItemIsUseable(const objDef_t* od);
37void GAME_CP_CharacterCvars(const character_t* chr);
38bool GAME_CP_TeamIsKnown(const teamDef_t* teamDef);
40void GAME_CP_Drop(void);
42void GAME_CP_InitMissionBriefing(const char** title, linkedList_t** victoryConditionsMsgIDs, linkedList_t** missionBriefingMsgIDs);
43void GAME_CP_Frame(float secondsSinceLastFrame);
44const char* GAME_CP_GetTeamDef(void);
45void GAME_CP_HandleBaseClick(int baseIdx, int key, int col, int row);
46void GAME_CP_DrawBase(int baseIdx, int x, int y, int w, int h, int col, int row, bool hover, int overlap);
47void GAME_CP_DrawBaseTooltip(int baseIdx, int x, int y, int col, int row);
48void 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);
49void GAME_CP_DrawBaseLayoutTooltip(int baseIdx, int x, int y);
Shared game type headers.
unsigned int key
Definition cl_input.cpp:64
const cgame_import_t * cgi
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_CharacterCvars(const character_t *chr)
const char * GAME_CP_GetTeamDef(void)
void GAME_CP_InitStartup(void)
void GAME_CP_Drop(void)
character_t * GAME_CP_GetSelectedChr(void)
Returns the currently selected character.
equipDef_t * GAME_CP_GetEquipmentDefinition(void)
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_Shutdown(void)
void GAME_CP_HandleBaseClick(int baseIdx, int key, int col, int row)
void GAME_CP_DrawBaseTooltip(int baseIdx, int x, int y, int col, int row)
const char * GAME_CP_GetItemModel(const char *string)
void GAME_CP_InitMissionBriefing(const char **title, linkedList_t **victoryConditionsMsgIDs, linkedList_t **missionBriefingMsgIDs)
void GAME_CP_Frame(float secondsSinceLastFrame)
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_Spawn(linkedList_t **chrList)
bool GAME_CP_TeamIsKnown(const teamDef_t *teamDef)
Checks whether the team is known at this stage already.
void GAME_CP_InitializeBattlescape(dbuffer *msg, const linkedList_t *team)
Changes some actor states for a campaign game.
void GAME_CP_DrawBaseLayoutTooltip(int baseIdx, int x, int y)
Draws basename as tooltip for baselayout widget.
bool GAME_CP_ItemIsUseable(const objDef_t *od)
#define MAX_TEAMS
Definition defines.h:98
Describes a character with all its attributes.
Definition chr_shared.h:388
Defines all attributes of objects used in the inventory.
Definition inv_shared.h:264
vec_t vec4_t[4]
Definition ufotypes.h:40