game_export_t Struct Reference

functions exported by the game subsystem More...

#include <game.h>

Collaboration diagram for game_export_t:
Collaboration graph
[legend]

Public Member Functions

 void (EXPORT *Init)(void)
 void (EXPORT *Shutdown)(void)
 void (EXPORT *SpawnEntities)(const char *mapname
 qboolean (EXPORT *ClientConnect)(player_t *client
 qboolean (EXPORT *ClientBegin)(player_t *client)
 void (EXPORT *ClientSpawn)(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)
 int (EXPORT *ClientGetTeamNumPref)(const player_t *client)
 qboolean (EXPORT *ClientIsReady)(const player_t *client)
 int (EXPORT *ClientGetActiveTeam)(void)
const char *EXPORT * ClientGetName (int pnum)
 qboolean (EXPORT *RunFrame)(void)
 void (EXPORT *ServerCommand)(void)

Data Fields

int apiversion
qboolean day
qboolean const char * entstring
char * userinfo
char size_t userinfoSize
struct edict_sedicts
int edict_size
int num_edicts
int max_edicts
struct player_splayers
int player_size
int maxplayersperteam

Detailed Description

functions exported by the game subsystem

Definition at line 230 of file game.h.


Member Function Documentation

const char* EXPORT* game_export_t::ClientGetName ( int  pnum  ) 

Referenced by GetGameAPI().

game_export_t::int ( EXPORT *  ClientGetActiveTeam  ) 
game_export_t::int ( EXPORT *  ClientGetTeamNumPref  )  const
game_export_t::int ( EXPORT *  ClientGetTeamNum  )  const
game_export_t::int ( EXPORT *  ClientAction  ) 
game_export_t::qboolean ( EXPORT *  RunFrame  ) 
game_export_t::qboolean ( EXPORT *  ClientIsReady  )  const
game_export_t::qboolean ( EXPORT *  ClientBegin  ) 
game_export_t::qboolean ( EXPORT *  ClientConnect  ) 
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 *  ClientInitActorStates  )  const
game_export_t::void ( EXPORT *  ClientTeamInfo  )  const
game_export_t::void ( EXPORT *  ClientEndRound  ) 
game_export_t::void ( EXPORT *  ClientCommand  ) 
game_export_t::void ( EXPORT *  ClientDisconnect  ) 
game_export_t::void ( EXPORT *  ClientUserinfoChanged  ) 
game_export_t::void ( EXPORT *  ClientSpawn  ) 
game_export_t::void ( EXPORT *  SpawnEntities  )  const
game_export_t::void ( EXPORT *  Shutdown  ) 
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


Field Documentation

Definition at line 231 of file game.h.

Referenced by GetGameAPI(), and SV_InitGameProgs().

Definition at line 240 of file game.h.

Definition at line 275 of file game.h.

Referenced by GetGameAPI().

The size will be fixed when ge->Init() is called

Definition at line 274 of file game.h.

Referenced by G_Init(), SV_LinkEdict(), and SV_Trace().

Definition at line 240 of file game.h.

Definition at line 277 of file game.h.

Referenced by G_Init().

Definition at line 281 of file game.h.

Referenced by G_Init().

current number, <= max_edicts

Definition at line 276 of file game.h.

Referenced by G_EdictsGetNewEdict(), G_EdictsGetNext(), G_EdictsGetNextActor(), G_EdictsGetNumber(), G_EdictsIsValidNum(), G_Init(), and SV_TouchEdicts().

Definition at line 280 of file game.h.

Referenced by GetGameAPI().

Definition at line 279 of file game.h.

Referenced by G_Init().

Definition at line 242 of file game.h.

Definition at line 242 of file game.h.


The documentation for this struct was generated from the following file:

Generated by  doxygen 1.6.2