UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
game.h File Reference

Interface to game library. More...

#include "../common/tracing.h"
#include "../common/grid.h"
#include "../common/cvar.h"
#include "srvedict.h"

Go to the source code of this file.

Data Structures

class  SrvPlayer
 
struct  game_import_s
 functions provided by the main engine More...
 
struct  game_export_s
 functions exported by the game subsystem More...
 

Macros

#define GAME_API_VERSION   10
 

Typedefs

typedef SrvPlayer player_t
 
typedef SrvEdict edict_t
 
typedef struct game_import_s game_import_t
 functions provided by the main engine More...
 
typedef struct game_export_s game_export_t
 functions exported by the game subsystem More...
 

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. More...
 

Detailed Description

Interface to game library.

Definition in file game.h.

Macro Definition Documentation

#define GAME_API_VERSION   10

Definition at line 35 of file game.h.

Referenced by GetGameAPI(), and SV_InitGameProgs().

Typedef Documentation

typedef SrvEdict edict_t

Definition at line 164 of file game.h.

typedef struct game_export_s game_export_t

functions exported by the game subsystem

typedef struct game_import_s game_import_t

functions provided by the main engine

Definition at line 72 of file game.h.

Enumeration Type Documentation

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