icculus quake2 doxygen  1.0 dev
game.h File Reference

Go to the source code of this file.

Classes

struct  link_s
 
struct  gclient_s
 
struct  edict_s
 
struct  game_import_t
 
struct  game_export_t
 

Macros

#define GAME_API_VERSION   3
 
#define SVF_NOCLIENT   0x00000001
 
#define SVF_DEADMONSTER   0x00000002
 
#define SVF_MONSTER   0x00000004
 
#define MAX_ENT_CLUSTERS   16
 

Typedefs

typedef struct link_s link_t
 
typedef struct edict_s edict_t
 
typedef struct gclient_s gclient_t
 

Enumerations

enum  solid_t { SOLID_NOT, SOLID_TRIGGER, SOLID_BBOX, SOLID_BSP }
 

Functions

game_export_tGetGameApi (game_import_t *import)
 

Macro Definition Documentation

◆ GAME_API_VERSION

#define GAME_API_VERSION   3

Definition at line 23 of file game.h.

◆ MAX_ENT_CLUSTERS

#define MAX_ENT_CLUSTERS   16

Definition at line 49 of file game.h.

◆ SVF_DEADMONSTER

#define SVF_DEADMONSTER   0x00000002

Definition at line 28 of file game.h.

◆ SVF_MONSTER

#define SVF_MONSTER   0x00000004

Definition at line 29 of file game.h.

◆ SVF_NOCLIENT

#define SVF_NOCLIENT   0x00000001

Definition at line 27 of file game.h.

Typedef Documentation

◆ edict_t

typedef struct edict_s edict_t

Definition at line 52 of file game.h.

◆ gclient_t

typedef struct gclient_s gclient_t

Definition at line 53 of file game.h.

◆ link_t

typedef struct link_s link_t

Enumeration Type Documentation

◆ solid_t

enum solid_t
Enumerator
SOLID_NOT 
SOLID_TRIGGER 
SOLID_BBOX 
SOLID_BSP 

Definition at line 33 of file game.h.

34 {
35 SOLID_NOT, // no interaction with other objects
36 SOLID_TRIGGER, // only touch when inside, after moving
37 SOLID_BBOX, // touch on edge
38 SOLID_BSP // bsp clip, touch on edge
39 } solid_t;

Function Documentation

◆ GetGameApi()

game_export_t* GetGameApi ( game_import_t import)
SOLID_BBOX
@ SOLID_BBOX
Definition: game.h:37
SOLID_TRIGGER
@ SOLID_TRIGGER
Definition: game.h:36
solid_t
solid_t
Definition: game.h:33
SOLID_NOT
@ SOLID_NOT
Definition: game.h:35
SOLID_BSP
@ SOLID_BSP
Definition: game.h:38