|
UFO: Alien Invasion
|
functions exported by the game subsystem More...
#include <game.h>

Public Member Functions | |
| void (EXPORT *Init)(void) | |
| void (EXPORT *Shutdown)(void) | |
| void (EXPORT *SpawnEntities)(const char *mapname | |
| bool (EXPORT *ClientConnect)(player_t *client | |
| bool (EXPORT *ClientBegin)(player_t &client) | |
| void (EXPORT *ClientStartMatch)(player_t &client) | |
| void (EXPORT *ClientUserinfoChanged)(player_t &client | |
| void (EXPORT *ClientDisconnect)(player_t &client) | |
| void (EXPORT *ClientCommand)(player_t &client) | |
| int (EXPORT *ClientAction)(player_t &client) | |
| void (EXPORT *ClientEndRound)(player_t &client) | |
| void (EXPORT *ClientTeamInfo)(const player_t &client) | |
| void (EXPORT *ClientInitActorStates)(const player_t &client) | |
| int (EXPORT *ClientGetTeamNum)(const player_t &client) | |
| bool (EXPORT *ClientIsReady)(const player_t *client) | |
| int (EXPORT *ClientGetActiveTeam)(void) | |
| const char *EXPORT * | ClientGetName (int pnum) |
| bool (EXPORT *RunFrame)(void) | |
| void (EXPORT *ServerCommand)(void) | |
Data Fields | |
| int | apiversion |
| bool | day |
| bool const char * | entstring |
| char * | userinfo |
| char size_t | userinfoSize |
| const char * | userinfo |
| edict_t * | edicts |
| int | edict_size |
| int | num_edicts |
| int | max_edicts |
| player_t * | players |
| int | player_size |
| int | maxplayersperteam |
| game_export_t::bool | ( | EXPORT * | ClientBegin | ) | & |
| game_export_t::bool | ( | EXPORT * | ClientConnect | ) |
| game_export_t::bool | ( | EXPORT * | ClientIsReady | ) | const |
| game_export_t::bool | ( | EXPORT * | RunFrame | ) |
Referenced by GetGameAPI().
| game_export_t::int | ( | EXPORT * | ClientAction | ) | & |
| game_export_t::int | ( | EXPORT * | ClientGetActiveTeam | ) |
| game_export_t::int | ( | EXPORT * | ClientGetTeamNum | ) | const & |
| game_export_t::void | ( | EXPORT * | ClientCommand | ) | & |
| game_export_t::void | ( | EXPORT * | ClientDisconnect | ) | & |
| game_export_t::void | ( | EXPORT * | ClientEndRound | ) | & |
| game_export_t::void | ( | EXPORT * | ClientInitActorStates | ) | const & |
| game_export_t::void | ( | EXPORT * | ClientStartMatch | ) | & |
| game_export_t::void | ( | EXPORT * | ClientTeamInfo | ) | const & |
| game_export_t::void | ( | EXPORT * | ClientUserinfoChanged | ) | & |
| game_export_t::void | ( | EXPORT * | Init | ) |
the init function will only be called when a game starts, not each time a level is loaded. Persistant data for clients and the server can be allocated in init
| game_export_t::void | ( | EXPORT * | ServerCommand | ) |
ServerCommand will be called when an "sv <command>" command is issued on the server console. The game can issue gi.Cmd_Argc() / gi.Cmd_Argv() commands to get the rest of the parameters
| game_export_t::void | ( | EXPORT * | Shutdown | ) |
| game_export_t::void | ( | EXPORT * | SpawnEntities | ) | const |
| int game_export_t::apiversion |
Definition at line 318 of file game.h.
Referenced by GetGameAPI(), and SV_InitGameProgs().
| int game_export_t::edict_size |
Definition at line 361 of file game.h.
Referenced by GetGameAPI().
| edict_t* game_export_t::edicts |
The size will be fixed when ge->Init() is called
Definition at line 360 of file game.h.
Referenced by G_Init(), and SV_LinkEdict().
| int game_export_t::num_edicts |
current number, <= max_edicts
Definition at line 362 of file game.h.
Referenced by G_EdictsGetNewEdict(), G_EdictsGetNext(), G_EdictsGetNextActor(), G_EdictsGetNumber(), G_EdictsIsValidNum(), and G_Init().
| int game_export_t::player_size |
Definition at line 366 of file game.h.
Referenced by GetGameAPI().