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