UFO: Alien Invasion
Loading...
Searching...
No Matches
game.h File Reference

Interface to game library. More...

#include "../common/tracing.h"
#include "../common/grid.h"
#include "../common/cvar.h"
#include "srvedict.h"
Include dependency graph for game.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  SrvPlayer
struct  game_import_t
 functions provided by the main engine More...
struct  game_export_t
 functions exported by the game subsystem More...

Macros

#define GAME_API_VERSION   10

Typedefs

typedef SrvPlayer player_t
typedef SrvEdict edict_t

Enumerations

enum  solid_t { SOLID_NOT , SOLID_TRIGGER , SOLID_BBOX , SOLID_BSP }
 edict->solid values More...

Functions

game_export_tGetGameAPI (game_import_t *import)
 Returns a pointer to the structure with all entry points and global variables.

Detailed Description

Interface to game library.

Definition in file game.h.

Macro Definition Documentation

◆ GAME_API_VERSION

#define GAME_API_VERSION   10

Definition at line 35 of file game.h.

Referenced by GetGameAPI(), and SV_InitGameProgs().

Typedef Documentation

◆ edict_t

typedef SrvEdict edict_t

Definition at line 164 of file game.h.

◆ player_t

Definition at line 72 of file game.h.

Enumeration Type Documentation

◆ solid_t

enum solid_t

edict->solid values

Enumerator
SOLID_NOT 

no interaction with other objects

SOLID_TRIGGER 

only touch when inside, after moving (triggers)

SOLID_BBOX 

touch on edge (monsters, etc)

SOLID_BSP 

bsp clip, touch on edge (solid walls, blocks, etc)

Definition at line 153 of file game.h.

Function Documentation

◆ GetGameAPI()