|
UFO: Alien Invasion
|
#include <cgame.h>

Public Member Functions | |
| void (EXPORT *Init)(void) | |
| void (EXPORT *Shutdown)(void) | |
| bool (EXPORT *Spawn)(linkedList_t **chrList) | |
| const mapDef_t *EXPORT * | MapInfo (int step) |
| void (EXPORT *Results)(dbuffer *msg | |
| bool (EXPORT *IsItemUseable)(const objDef_t *od) | |
| const char *EXPORT * | GetModelForItem (const char *string) |
| equipDef_t *EXPORT * | GetEquipmentDefinition (void) |
| void (EXPORT *UpdateCharacterValues)(const character_t *chr) | |
| bool (EXPORT *IsTeamKnown)(const teamDef_t *teamDef) | |
| character_t *EXPORT * | GetSelectedChr (void) |
| int (EXPORT *GetChrMaxLoad)(const character_t *chr) | |
| void (EXPORT *Drop)(void) | |
| void (EXPORT *InitializeBattlescape)(dbuffer *msg | |
| void (EXPORT *RunFrame)(float secondsSinceLastFrame) | |
| void (EXPORT *DrawBaseLayout)(int baseIdx | |
| void (EXPORT *DrawBaseLayoutTooltip)(int baseIdx | |
| void (EXPORT *EndRoundAnnounce)(int playerNum | |
| void (EXPORT *StartBattlescape)(bool isTeamPlay) | |
| void (EXPORT *InitMissionBriefing)(const char **title | |
| const char *EXPORT * | GetTeamDef (void) |
| void (EXPORT *NotifyEvent)(event_t eventType) | |
| void (EXPORT *AddChatMessage)(const char *message) | |
| bool (EXPORT *HandleServerCommand)(const char *command | |
| void (EXPORT *MapDraw)(geoscapeData_t *data) | |
| void (EXPORT *MapDrawMarkers)(const uiNode_t *node) | |
| bool (EXPORT *MapClick)(const uiNode_t *node | |
Data Fields | |
| const char * | name |
| const char * | menu |
| int | isMultiplayer |
| int | |
| int int | int [][MAX_TEAMS] |
| int int bool | nextmap |
| const linkedList_t * | team |
| int | x |
| int int | y |
| int int int | totalMarge |
| int int int int | w |
| int int int int int | h |
| int int int int int int | padding |
| int int int int int int const vec4_t | bgcolor |
| int int int int int int const vec4_t const vec4_t | color |
| int | team |
| linkedList_t ** | victoryConditionsMsgIDs |
| linkedList_t linkedList_t ** | missionBriefingMsgIDs |
| dbuffer * | msg |
| int int const vec2_t | pos |
| cgame_export_t::bool | ( | EXPORT * | IsItemUseable | ) | const |
check whether the given item is usable in the current game mode
References EXPORT.
| cgame_export_t::bool | ( | EXPORT * | IsTeamKnown | ) | const |
checks whether the given team is known in the particular gamemode
References EXPORT.
| cgame_export_t::bool | ( | EXPORT * | Spawn | ) |
soldier spawn functions may differ between the different gametypes
References EXPORT.
| equipDef_t *EXPORT * cgame_export_t::GetEquipmentDefinition | ( | void | ) |
returns the equipment definition the game mode is using
References EXPORT, and GetEquipmentDefinition().
Referenced by GAME_GetEquipmentDefinition(), GetCGameAPI(), and GetEquipmentDefinition().
| const char *EXPORT * cgame_export_t::GetModelForItem | ( | const char * | string | ) |
if you want to display a different model for the given object in your game mode, implement this function
References EXPORT, and GetModelForItem().
Referenced by GAME_DisplayItemInfo(), GAME_GetModelForItem(), GetCGameAPI(), and GetModelForItem().
| character_t *EXPORT * cgame_export_t::GetSelectedChr | ( | void | ) |
returns the selected character
References EXPORT, and GetSelectedChr().
Referenced by GAME_GetSelectedChr(), GetCGameAPI(), and GetSelectedChr().
References EXPORT, and GetTeamDef().
Referenced by GAME_GetTeamDef(), GetCGameAPI(), and GetTeamDef().
| cgame_export_t::int | ( | EXPORT * | GetChrMaxLoad | ) | const |
if you want to have a different control on how much a soldier can carry implement this (but max is still limited to actor strength)
References EXPORT.
some gametypes only support special maps
References EXPORT, and MapInfo().
Referenced by GetCGameAPI(), MapInfo(), and UI_MapInfo().
| cgame_export_t::void | ( | EXPORT * | DrawBaseLayout | ) |
| cgame_export_t::void | ( | EXPORT * | EndRoundAnnounce | ) |
| cgame_export_t::void | ( | EXPORT * | Init | ) |
| cgame_export_t::void | ( | EXPORT * | InitializeBattlescape | ) |
called after the team spawn messages where send, can e.g. be used to set initial actor states
| cgame_export_t::void | ( | EXPORT * | InitMissionBriefing | ) | const |
| cgame_export_t::void | ( | EXPORT * | Results | ) |
some gametypes require extra data in the results parsing (like e.g. campaign mode)
| cgame_export_t::void | ( | EXPORT * | UpdateCharacterValues | ) | const |
update character display values for game type dependent stuff
References EXPORT.
| int cgame_export_t::isMultiplayer |
Definition at line 40 of file cgame.h.
Referenced by GAME_InitUIData(), GAME_IsMultiplayer(), and GetCGameAPI().
| const char* cgame_export_t::menu |
Definition at line 39 of file cgame.h.
Referenced by GAME_GetCurrentName(), GAME_SetMode(), and GetCGameAPI().
| linkedList_t linkedList_t** cgame_export_t::missionBriefingMsgIDs |
| const char* cgame_export_t::name |
the name of this cgame mode - only for console output
Definition at line 38 of file cgame.h.
Referenced by GAME_SetMode(), GetCGameAPI(), GAMECmdListener::onGameModeChange(), and GAMECvarListener::onGameModeChange().
| const linkedList_t* cgame_export_t::team |
| linkedList_t** cgame_export_t::victoryConditionsMsgIDs |