doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Functions | Variables
Game_local.h File Reference
#include "gamesys/Event.h"
#include "gamesys/Class.h"
#include "gamesys/SysCvar.h"
#include "gamesys/SysCmds.h"
#include "gamesys/SaveGame.h"
#include "gamesys/DebugGraph.h"
#include "script/Script_Program.h"
#include "anim/Anim.h"
#include "ai/AAS.h"
#include "physics/Clip.h"
#include "physics/Push.h"
#include "Pvs.h"
#include "MultiplayerGame.h"
#include "physics/Force.h"
#include "physics/Force_Constant.h"
#include "physics/Force_Drag.h"
#include "physics/Force_Field.h"
#include "physics/Force_Spring.h"
#include "physics/Physics.h"
#include "physics/Physics_Static.h"
#include "physics/Physics_StaticMulti.h"
#include "physics/Physics_Base.h"
#include "physics/Physics_Actor.h"
#include "physics/Physics_Monster.h"
#include "physics/Physics_Player.h"
#include "physics/Physics_Parametric.h"
#include "physics/Physics_RigidBody.h"
#include "physics/Physics_AF.h"
#include "SmokeParticles.h"
#include "Entity.h"
#include "GameEdit.h"
#include "AF.h"
#include "IK.h"
#include "AFEntity.h"
#include "Misc.h"
#include "Actor.h"
#include "Projectile.h"
#include "Weapon.h"
#include "Light.h"
#include "WorldSpawn.h"
#include "Item.h"
#include "PlayerView.h"
#include "PlayerIcon.h"
#include "Player.h"
#include "Mover.h"
#include "Camera.h"
#include "Moveable.h"
#include "Target.h"
#include "Trigger.h"
#include "Sound.h"
#include "Fx.h"
#include "SecurityCamera.h"
#include "BrittleFracture.h"
#include "ai/AI.h"
#include "anim/Anim_Testmodel.h"
#include "script/Script_Compiler.h"
#include "script/Script_Interpreter.h"
#include "script/Script_Thread.h"

Go to the source code of this file.

Classes

struct  entityState_s
 
struct  snapshot_s
 
struct  entityNetEvent_s
 
struct  spawnSpot_t
 
class  idEventQueue
 
class  idEntityPtr< type >
 
class  idGameLocal
 
class  idGameError
 

Macros

#define LAGO_IMG_WIDTH   64
 
#define LAGO_IMG_HEIGHT   64
 
#define LAGO_WIDTH   64
 
#define LAGO_HEIGHT   44
 
#define LAGO_MATERIAL   "textures/sfx/lagometer"
 
#define LAGO_IMAGE   "textures/sfx/lagometer.tga"
 
#define ASYNC_WRITE_PVS   0
 
#define GAME_VERSION   "baseDOOM-1"
 
#define MAX_CLIENTS   32
 
#define GENTITYNUM_BITS   12
 
#define MAX_GENTITIES   (1<<GENTITYNUM_BITS)
 
#define ENTITYNUM_NONE   (MAX_GENTITIES-1)
 
#define ENTITYNUM_WORLD   (MAX_GENTITIES-2)
 
#define ENTITYNUM_MAX_NORMAL   (MAX_GENTITIES-2)
 
#define MASK_ALL   (-1)
 
#define MASK_SOLID   (CONTENTS_SOLID)
 
#define MASK_MONSTERSOLID   (CONTENTS_SOLID|CONTENTS_MONSTERCLIP|CONTENTS_BODY)
 
#define MASK_PLAYERSOLID   (CONTENTS_SOLID|CONTENTS_PLAYERCLIP|CONTENTS_BODY)
 
#define MASK_DEADSOLID   (CONTENTS_SOLID|CONTENTS_PLAYERCLIP)
 
#define MASK_WATER   (CONTENTS_WATER)
 
#define MASK_OPAQUE   (CONTENTS_OPAQUE)
 
#define MASK_SHOT_RENDERMODEL   (CONTENTS_SOLID|CONTENTS_RENDERMODEL)
 
#define MASK_SHOT_BOUNDINGBOX   (CONTENTS_SOLID|CONTENTS_BODY)
 
#define DEFAULT_GRAVITY_STRING   "1066"
 

Typedefs

typedef struct entityState_s entityState_t
 
typedef struct snapshot_s snapshot_t
 
typedef struct entityNetEvent_s entityNetEvent_t
 

Enumerations

enum  {
  GAME_RELIABLE_MESSAGE_INIT_DECL_REMAP, GAME_RELIABLE_MESSAGE_REMAP_DECL, GAME_RELIABLE_MESSAGE_SPAWN_PLAYER, GAME_RELIABLE_MESSAGE_DELETE_ENT,
  GAME_RELIABLE_MESSAGE_CHAT, GAME_RELIABLE_MESSAGE_TCHAT, GAME_RELIABLE_MESSAGE_SOUND_EVENT, GAME_RELIABLE_MESSAGE_SOUND_INDEX,
  GAME_RELIABLE_MESSAGE_DB, GAME_RELIABLE_MESSAGE_KILL, GAME_RELIABLE_MESSAGE_DROPWEAPON, GAME_RELIABLE_MESSAGE_RESTART,
  GAME_RELIABLE_MESSAGE_SERVERINFO, GAME_RELIABLE_MESSAGE_TOURNEYLINE, GAME_RELIABLE_MESSAGE_CALLVOTE, GAME_RELIABLE_MESSAGE_CASTVOTE,
  GAME_RELIABLE_MESSAGE_STARTVOTE, GAME_RELIABLE_MESSAGE_UPDATEVOTE, GAME_RELIABLE_MESSAGE_PORTALSTATES, GAME_RELIABLE_MESSAGE_PORTAL,
  GAME_RELIABLE_MESSAGE_VCHAT, GAME_RELIABLE_MESSAGE_STARTSTATE, GAME_RELIABLE_MESSAGE_MENU, GAME_RELIABLE_MESSAGE_WARMUPTIME,
  GAME_RELIABLE_MESSAGE_EVENT
}
 
enum  gameState_t {
  GAMESTATE_UNINITIALIZED, GAMESTATE_NOMAP, GAMESTATE_STARTUP, GAMESTATE_ACTIVE,
  GAMESTATE_SHUTDOWN
}
 
enum  gameSoundChannel_t {
  SND_CHANNEL_ANY = SCHANNEL_ANY, SND_CHANNEL_VOICE = SCHANNEL_ONE, SND_CHANNEL_VOICE2, SND_CHANNEL_BODY,
  SND_CHANNEL_BODY2, SND_CHANNEL_BODY3, SND_CHANNEL_WEAPON, SND_CHANNEL_ITEM,
  SND_CHANNEL_HEART, SND_CHANNEL_PDA, SND_CHANNEL_DEMONIC, SND_CHANNEL_RADIO,
  SND_CHANNEL_AMBIENT, SND_CHANNEL_DAMAGE
}
 

Functions

void gameError (const char *fmt,...)
 
const idVec3 DEFAULT_GRAVITY_VEC3 (0, 0,-DEFAULT_GRAVITY)
 

Variables

idRenderWorldgameRenderWorld
 
idSoundWorldgameSoundWorld
 
const int MAX_GAME_MESSAGE_SIZE = 8192
 
const int MAX_ENTITY_STATE_SIZE = 512
 
const int ENTITY_PVS_SIZE = ((MAX_GENTITIES+31)>>5)
 
const int NUM_RENDER_PORTAL_BITS = idMath::BitsForInteger( PS_BLOCK_ALL )
 
const int MAX_EVENT_PARAM_SIZE = 128
 
idGameLocal gameLocal
 
idAnimManager animationLib
 
const float DEFAULT_GRAVITY = 1066.0f
 
const int CINEMATIC_SKIP_DELAY = SEC2MS( 2.0f )
 

Macro Definition Documentation

#define ASYNC_WRITE_PVS   0

Definition at line 49 of file Game_local.h.

#define DEFAULT_GRAVITY_STRING   "1066"

Definition at line 745 of file Game_local.h.

#define ENTITYNUM_MAX_NORMAL   (MAX_GENTITIES-2)

Definition at line 86 of file Game_local.h.

#define ENTITYNUM_NONE   (MAX_GENTITIES-1)

Definition at line 84 of file Game_local.h.

#define ENTITYNUM_WORLD   (MAX_GENTITIES-2)

Definition at line 85 of file Game_local.h.

#define GAME_VERSION   "baseDOOM-1"

Definition at line 62 of file Game_local.h.

#define GENTITYNUM_BITS   12

Definition at line 82 of file Game_local.h.

#define LAGO_HEIGHT   44

Definition at line 43 of file Game_local.h.

#define LAGO_IMAGE   "textures/sfx/lagometer.tga"

Definition at line 45 of file Game_local.h.

#define LAGO_IMG_HEIGHT   64

Definition at line 41 of file Game_local.h.

#define LAGO_IMG_WIDTH   64

Definition at line 40 of file Game_local.h.

#define LAGO_MATERIAL   "textures/sfx/lagometer"

Definition at line 44 of file Game_local.h.

#define LAGO_WIDTH   64

Definition at line 42 of file Game_local.h.

#define MASK_ALL   (-1)

Definition at line 734 of file Game_local.h.

#define MASK_DEADSOLID   (CONTENTS_SOLID|CONTENTS_PLAYERCLIP)

Definition at line 738 of file Game_local.h.

#define MASK_MONSTERSOLID   (CONTENTS_SOLID|CONTENTS_MONSTERCLIP|CONTENTS_BODY)

Definition at line 736 of file Game_local.h.

#define MASK_OPAQUE   (CONTENTS_OPAQUE)

Definition at line 740 of file Game_local.h.

#define MASK_PLAYERSOLID   (CONTENTS_SOLID|CONTENTS_PLAYERCLIP|CONTENTS_BODY)

Definition at line 737 of file Game_local.h.

#define MASK_SHOT_BOUNDINGBOX   (CONTENTS_SOLID|CONTENTS_BODY)

Definition at line 742 of file Game_local.h.

#define MASK_SHOT_RENDERMODEL   (CONTENTS_SOLID|CONTENTS_RENDERMODEL)

Definition at line 741 of file Game_local.h.

#define MASK_SOLID   (CONTENTS_SOLID)

Definition at line 735 of file Game_local.h.

#define MASK_WATER   (CONTENTS_WATER)

Definition at line 739 of file Game_local.h.

#define MAX_CLIENTS   32

Definition at line 81 of file Game_local.h.

#define MAX_GENTITIES   (1<<GENTITYNUM_BITS)

Definition at line 83 of file Game_local.h.

Typedef Documentation

typedef struct entityState_s entityState_t
typedef struct snapshot_s snapshot_t

Enumeration Type Documentation

anonymous enum
Enumerator
GAME_RELIABLE_MESSAGE_INIT_DECL_REMAP 
GAME_RELIABLE_MESSAGE_REMAP_DECL 
GAME_RELIABLE_MESSAGE_SPAWN_PLAYER 
GAME_RELIABLE_MESSAGE_DELETE_ENT 
GAME_RELIABLE_MESSAGE_CHAT 
GAME_RELIABLE_MESSAGE_TCHAT 
GAME_RELIABLE_MESSAGE_SOUND_EVENT 
GAME_RELIABLE_MESSAGE_SOUND_INDEX 
GAME_RELIABLE_MESSAGE_DB 
GAME_RELIABLE_MESSAGE_KILL 
GAME_RELIABLE_MESSAGE_DROPWEAPON 
GAME_RELIABLE_MESSAGE_RESTART 
GAME_RELIABLE_MESSAGE_SERVERINFO 
GAME_RELIABLE_MESSAGE_TOURNEYLINE 
GAME_RELIABLE_MESSAGE_CALLVOTE 
GAME_RELIABLE_MESSAGE_CASTVOTE 
GAME_RELIABLE_MESSAGE_STARTVOTE 
GAME_RELIABLE_MESSAGE_UPDATEVOTE 
GAME_RELIABLE_MESSAGE_PORTALSTATES 
GAME_RELIABLE_MESSAGE_PORTAL 
GAME_RELIABLE_MESSAGE_VCHAT 
GAME_RELIABLE_MESSAGE_STARTSTATE 
GAME_RELIABLE_MESSAGE_MENU 
GAME_RELIABLE_MESSAGE_WARMUPTIME 
GAME_RELIABLE_MESSAGE_EVENT 

Definition at line 144 of file Game_local.h.

Enumerator
SND_CHANNEL_ANY 
SND_CHANNEL_VOICE 
SND_CHANNEL_VOICE2 
SND_CHANNEL_BODY 
SND_CHANNEL_BODY2 
SND_CHANNEL_BODY3 
SND_CHANNEL_WEAPON 
SND_CHANNEL_ITEM 
SND_CHANNEL_HEART 
SND_CHANNEL_PDA 
SND_CHANNEL_DEMONIC 
SND_CHANNEL_RADIO 
SND_CHANNEL_AMBIENT 
SND_CHANNEL_DAMAGE 

Definition at line 714 of file Game_local.h.

Enumerator
GAMESTATE_UNINITIALIZED 
GAMESTATE_NOMAP 
GAMESTATE_STARTUP 
GAMESTATE_ACTIVE 
GAMESTATE_SHUTDOWN 

Definition at line 172 of file Game_local.h.

Function Documentation

const idVec3 DEFAULT_GRAVITY_VEC3 ( ,
,
DEFAULT_GRAVITY 
)
void gameError ( const char *  fmt,
  ... 
)

Definition at line 805 of file Game_local.cpp.

Variable Documentation

idAnimManager animationLib

Definition at line 61 of file Game_local.cpp.

const int CINEMATIC_SKIP_DELAY = SEC2MS( 2.0f )

Definition at line 748 of file Game_local.h.

const float DEFAULT_GRAVITY = 1066.0f

Definition at line 744 of file Game_local.h.

const int ENTITY_PVS_SIZE = ((MAX_GENTITIES+31)>>5)

Definition at line 115 of file Game_local.h.

idGameLocal gameLocal

Definition at line 64 of file Game_local.cpp.

idRenderWorld* gameRenderWorld

Definition at line 55 of file Game_local.cpp.

idSoundWorld* gameSoundWorld

Definition at line 56 of file Game_local.cpp.

const int MAX_ENTITY_STATE_SIZE = 512

Definition at line 114 of file Game_local.h.

const int MAX_EVENT_PARAM_SIZE = 128

Definition at line 132 of file Game_local.h.

const int MAX_GAME_MESSAGE_SIZE = 8192

Definition at line 113 of file Game_local.h.

const int NUM_RENDER_PORTAL_BITS = idMath::BitsForInteger( PS_BLOCK_ALL )

Definition at line 116 of file Game_local.h.