doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
idGameLocal Class Reference

#include <Game_local.h>

Inheritance diagram for idGameLocal:
idGame

Public Member Functions

void Tokenize (idStrList &out, const char *in)
 
 idGameLocal ()
 
virtual void Init (void)
 
virtual void Shutdown (void)
 
virtual void SetLocalClient (int clientNum)
 
virtual void ThrottleUserInfo (void)
 
virtual const idDictSetUserInfo (int clientNum, const idDict &userInfo, bool isClient, bool canModify)
 
virtual const idDictGetUserInfo (int clientNum)
 
virtual void SetServerInfo (const idDict &serverInfo)
 
virtual const idDictGetPersistentPlayerInfo (int clientNum)
 
virtual void SetPersistentPlayerInfo (int clientNum, const idDict &playerInfo)
 
virtual void InitFromNewMap (const char *mapName, idRenderWorld *renderWorld, idSoundWorld *soundWorld, bool isServer, bool isClient, int randSeed)
 
virtual bool InitFromSaveGame (const char *mapName, idRenderWorld *renderWorld, idSoundWorld *soundWorld, idFile *saveGameFile)
 
virtual void SaveGame (idFile *saveGameFile)
 
virtual void MapShutdown (void)
 
virtual void CacheDictionaryMedia (const idDict *dict)
 
virtual void SpawnPlayer (int clientNum)
 
virtual gameReturn_t RunFrame (const usercmd_t *clientCmds)
 
virtual bool Draw (int clientNum)
 
virtual escReply_t HandleESC (idUserInterface **gui)
 
virtual idUserInterfaceStartMenu (void)
 
virtual const char * HandleGuiCommands (const char *menuCommand)
 
virtual void HandleMainMenuCommands (const char *menuCommand, idUserInterface *gui)
 
virtual allowReply_t ServerAllowClient (int numClients, const char *IP, const char *guid, const char *password, char reason[MAX_STRING_CHARS])
 
virtual void ServerClientConnect (int clientNum, const char *guid)
 
virtual void ServerClientBegin (int clientNum)
 
virtual void ServerClientDisconnect (int clientNum)
 
virtual void ServerWriteInitialReliableMessages (int clientNum)
 
virtual void ServerWriteSnapshot (int clientNum, int sequence, idBitMsg &msg, byte *clientInPVS, int numPVSClients)
 
virtual bool ServerApplySnapshot (int clientNum, int sequence)
 
virtual void ServerProcessReliableMessage (int clientNum, const idBitMsg &msg)
 
virtual void ClientReadSnapshot (int clientNum, int sequence, const int gameFrame, const int gameTime, const int dupeUsercmds, const int aheadOfServer, const idBitMsg &msg)
 
virtual bool ClientApplySnapshot (int clientNum, int sequence)
 
virtual void ClientProcessReliableMessage (int clientNum, const idBitMsg &msg)
 
virtual gameReturn_t ClientPrediction (int clientNum, const usercmd_t *clientCmds, bool lastPredictFrame)
 
virtual void GetClientStats (int clientNum, char *data, const int len)
 
virtual void SwitchTeam (int clientNum, int team)
 
virtual bool DownloadRequest (const char *IP, const char *guid, const char *paks, char urls[MAX_STRING_CHARS])
 
virtual void GetMapLoadingGUI (char gui[MAX_STRING_CHARS])
 
void Printf (const char *fmt,...) const id_attribute((format(printf
 
void void DPrintf (const char *fmt,...) const id_attribute((format(printf
 
void void void Warning (const char *fmt,...) const id_attribute((format(printf
 
void void void void DWarning (const char *fmt,...) const id_attribute((format(printf
 
void void void void void Error (const char *fmt,...) const id_attribute((format(printf
 
void void void void void void LoadMap (const char *mapName, int randseed)
 
void LocalMapRestart (void)
 
void MapRestart (void)
 
bool NextMap (void)
 
idMapFileGetLevelMap (void)
 
const char * GetMapName (void) const
 
int NumAAS (void) const
 
idAASGetAAS (int num) const
 
idAASGetAAS (const char *name) const
 
void SetAASAreaState (const idBounds &bounds, const int areaContents, bool closed)
 
aasHandle_t AddAASObstacle (const idBounds &bounds)
 
void RemoveAASObstacle (const aasHandle_t handle)
 
void RemoveAllAASObstacles (void)
 
bool CheatsOk (bool requirePlayer=true)
 
void SetSkill (int value)
 
gameState_t GameState (void) const
 
idEntitySpawnEntityType (const idTypeInfo &classdef, const idDict *args=NULL, bool bIsClientReadSnapshot=false)
 
bool SpawnEntityDef (const idDict &args, idEntity **ent=NULL, bool setDefaults=true)
 
int GetSpawnId (const idEntity *ent) const
 
const idDeclEntityDefFindEntityDef (const char *name, bool makeDefault=true) const
 
const idDictFindEntityDefDict (const char *name, bool makeDefault=true) const
 
void RegisterEntity (idEntity *ent)
 
void UnregisterEntity (idEntity *ent)
 
bool RequirementMet (idEntity *activator, const idStr &requires, int removeItem)
 
void AlertAI (idEntity *ent)
 
idActorGetAlertEntity (void)
 
bool InPlayerPVS (idEntity *ent) const
 
bool InPlayerConnectedArea (idEntity *ent) const
 
void SetCamera (idCamera *cam)
 
idCameraGetCamera (void) const
 
bool SkipCinematic (void)
 
void CalcFov (float base_fov, float &fov_x, float &fov_y) const
 
void AddEntityToHash (const char *name, idEntity *ent)
 
bool RemoveEntityFromHash (const char *name, idEntity *ent)
 
int GetTargets (const idDict &args, idList< idEntityPtr< idEntity > > &list, const char *ref) const
 
idEntityGetTraceEntity (const trace_t &trace) const
 
idEntityFindTraceEntity (idVec3 start, idVec3 end, const idTypeInfo &c, const idEntity *skip) const
 
idEntityFindEntity (const char *name) const
 
idEntityFindEntityUsingDef (idEntity *from, const char *match) const
 
int EntitiesWithinRadius (const idVec3 org, float radius, idEntity **entityList, int maxCount) const
 
void KillBox (idEntity *ent, bool catch_teleport=false)
 
void RadiusDamage (const idVec3 &origin, idEntity *inflictor, idEntity *attacker, idEntity *ignoreDamage, idEntity *ignorePush, const char *damageDefName, float dmgPower=1.0f)
 
void RadiusPush (const idVec3 &origin, const float radius, const float push, const idEntity *inflictor, const idEntity *ignore, float inflictorScale, const bool quake)
 
void RadiusPushClipModel (const idVec3 &origin, const float push, const idClipModel *clipModel)
 
void ProjectDecal (const idVec3 &origin, const idVec3 &dir, float depth, bool parallel, float size, const char *material, float angle=0)
 
void BloodSplat (const idVec3 &origin, const idVec3 &dir, float size, const char *material)
 
void CallFrameCommand (idEntity *ent, const function_t *frameCommand)
 
void CallObjectFrameCommand (idEntity *ent, const char *frameCommand)
 
const idVec3GetGravity (void) const
 
int GetFrameNum () const
 
int GetTime () const
 
int GetMSec () const
 
int GetNextClientNum (int current) const
 
idPlayerGetClientByNum (int current) const
 
idPlayerGetClientByName (const char *name) const
 
idPlayerGetClientByCmdArgs (const idCmdArgs &args) const
 
idPlayerGetLocalPlayer () const
 
void SpreadLocations ()
 
idLocationEntityLocationForPoint (const idVec3 &point)
 
idEntitySelectInitialSpawnPoint (idPlayer *player)
 
void SetPortalState (qhandle_t portal, int blockingBits)
 
void SaveEntityNetworkEvent (const idEntity *ent, int event, const idBitMsg *msg)
 
void ServerSendChatMessage (int to, const char *name, const char *text)
 
int ServerRemapDecl (int clientNum, declType_t type, int index)
 
int ClientRemapDecl (declType_t type, int index)
 
void SetGlobalMaterial (const idMaterial *mat)
 
const idMaterialGetGlobalMaterial ()
 
void SetGibTime (int _time)
 
int GetGibTime ()
 
- Public Member Functions inherited from idGame
virtual ~idGame ()
 
virtual void SelectTimeGroup (int timeGroup)=0
 
virtual int GetTimeGroupTime (int timeGroup)=0
 
virtual void GetBestGameType (const char *map, const char *gametype, char buf[MAX_STRING_CHARS])=0
 

Static Public Member Functions

static void MapRestart_f (const idCmdArgs &args)
 
static void NextMap_f (const idCmdArgs &args)
 
static void ArgCompletion_EntityName (const idCmdArgs &args, void(*callback)(const char *s))
 

Public Attributes

idDict serverInfo
 
int numClients
 
idDict userInfo [MAX_CLIENTS]
 
usercmd_t usercmds [MAX_CLIENTS]
 
idDict persistentPlayerInfo [MAX_CLIENTS]
 
idEntityentities [MAX_GENTITIES]
 
int spawnIds [MAX_GENTITIES]
 
int firstFreeIndex
 
int num_entities
 
idHashIndex entityHash
 
idWorldspawnworld
 
idLinkList< idEntityspawnedEntities
 
idLinkList< idEntityactiveEntities
 
int numEntitiesToDeactivate
 
bool sortPushers
 
bool sortTeamMasters
 
idDict persistentLevelInfo
 
float globalShaderParms [MAX_GLOBAL_SHADER_PARMS]
 
idRandom random
 
idProgram program
 
idThreadframeCommandThread
 
idClip clip
 
idPush push
 
idPVS pvs
 
idTestModeltestmodel
 
idEntityFxtestFx
 
idStr sessionCommand
 
idMultiplayerGame mpGame
 
idSmokeParticlessmokeParticles
 
idEditEntitieseditEntities
 
int cinematicSkipTime
 
int cinematicStopTime
 
int cinematicMaxSkipTime
 
bool inCinematic
 
bool skipCinematic
 
int framenum
 
int previousTime
 
int time
 
int msec
 
int vacuumAreaNum
 
gameType_t gameType
 
bool isMultiplayer
 
bool isServer
 
bool isClient
 
int localClientNum
 
idLinkList< idEntitysnapshotEntities
 
int realClientTime
 
bool isNewFrame
 
float clientSmoothing
 
int entityDefBits
 
idEntityPtr< idEntitylastGUIEnt
 
int lastGUI
 

Static Public Attributes

static const char * sufaceTypeNames [MAX_SURFACE_TYPES]
 

Private Member Functions

void Clear (void)
 
bool InhibitEntitySpawn (idDict &spawnArgs)
 
void SpawnMapEntities (void)
 
void MapPopulate (void)
 
void MapClear (bool clearClients)
 
pvsHandle_t GetClientPVS (idPlayer *player, pvsType_t type)
 
void SetupPlayerPVS (void)
 
void FreePlayerPVS (void)
 
void UpdateGravity (void)
 
void SortActiveEntityList (void)
 
void ShowTargets (void)
 
void RunDebugInfo (void)
 
void InitScriptForMap (void)
 
void InitConsoleCommands (void)
 
void ShutdownConsoleCommands (void)
 
void InitAsyncNetwork (void)
 
void ShutdownAsyncNetwork (void)
 
void InitLocalClient (int clientNum)
 
void InitClientDeclRemap (int clientNum)
 
void ServerSendDeclRemapToClient (int clientNum, declType_t type, int index)
 
void FreeSnapshotsOlderThanSequence (int clientNum, int sequence)
 
bool ApplySnapshot (int clientNum, int sequence)
 
void WriteGameStateToSnapshot (idBitMsgDelta &msg) const
 
void ReadGameStateFromSnapshot (const idBitMsgDelta &msg)
 
void NetworkEventWarning (const entityNetEvent_t *event, const char *fmt,...) id_attribute((format(printf
 
void void ServerProcessEntityNetworkEventQueue (void)
 
void ClientProcessEntityNetworkEventQueue (void)
 
void ClientShowSnapshot (int clientNum) const
 
void UpdateServerInfoFlags (void)
 
void RandomizeInitialSpawns (void)
 
void DumpOggSounds (void)
 
void GetShakeSounds (const idDict *dict)
 
void UpdateLagometer (int aheadOfServer, int dupeUsercmds)
 

Static Private Member Functions

static int sortSpawnPoints (const void *ptr1, const void *ptr2)
 

Private Attributes

idStr mapFileName
 
idMapFilemapFile
 
bool mapCycleLoaded
 
int spawnCount
 
int mapSpawnCount
 
idLocationEntity ** locationEntities
 
idCameracamera
 
const idMaterialglobalMaterial
 
idList< idAAS * > aasList
 
idStrList aasNames
 
idEntityPtr< idActorlastAIAlertEntity
 
int lastAIAlertTime
 
idDict spawnArgs
 
pvsHandle_t playerPVS
 
pvsHandle_t playerConnectedAreas
 
idVec3 gravity
 
gameState_t gamestate
 
bool influenceActive
 
int nextGibTime
 
idList< intclientDeclRemap [MAX_CLIENTS][DECL_MAX_TYPES]
 
entityState_tclientEntityStates [MAX_CLIENTS][MAX_GENTITIES]
 
int clientPVS [MAX_CLIENTS][ENTITY_PVS_SIZE]
 
snapshot_tclientSnapshots [MAX_CLIENTS]
 
idBlockAlloc< entityState_t, 256 > entityStateAllocator
 
idBlockAlloc< snapshot_t, 64 > snapshotAllocator
 
idEventQueue eventQueue
 
idEventQueue savedEventQueue
 
idStaticList< spawnSpot_t,
MAX_GENTITIES
spawnSpots
 
idStaticList< idEntity
*, MAX_GENTITIES
initialSpots
 
int currentInitialSpot
 
idDict newInfo
 
idStrList shakeSounds
 
byte lagometer [LAGO_IMG_HEIGHT][LAGO_IMG_WIDTH][4]
 

Static Private Attributes

static const int INITIAL_SPAWN_COUNT = 1
 

Detailed Description

Definition at line 268 of file Game_local.h.

Constructor & Destructor Documentation

idGameLocal::idGameLocal ( )

Definition at line 189 of file Game_local.cpp.

Member Function Documentation

aasHandle_t idGameLocal::AddAASObstacle ( const idBounds bounds)

Definition at line 3104 of file Game_local.cpp.

void idGameLocal::AddEntityToHash ( const char *  name,
idEntity ent 
)

Definition at line 3531 of file Game_local.cpp.

void idGameLocal::AlertAI ( idEntity ent)

Definition at line 3807 of file Game_local.cpp.

bool idGameLocal::ApplySnapshot ( int  clientNum,
int  sequence 
)
private

Definition at line 482 of file Game_network.cpp.

void idGameLocal::ArgCompletion_EntityName ( const idCmdArgs args,
void(*)(const char *s callback 
)
static

Definition at line 3613 of file Game_local.cpp.

void idGameLocal::BloodSplat ( const idVec3 origin,
const idVec3 dir,
float  size,
const char *  material 
)

Definition at line 4127 of file Game_local.cpp.

void idGameLocal::CacheDictionaryMedia ( const idDict dict)
virtual

Implements idGame.

Definition at line 1823 of file Game_local.cpp.

void idGameLocal::CalcFov ( float  base_fov,
float fov_x,
float fov_y 
) const

Definition at line 2640 of file Game_local.cpp.

void idGameLocal::CallFrameCommand ( idEntity ent,
const function_t frameCommand 
)

Definition at line 2820 of file Game_local.cpp.

void idGameLocal::CallObjectFrameCommand ( idEntity ent,
const char *  frameCommand 
)

Definition at line 2830 of file Game_local.cpp.

bool idGameLocal::CheatsOk ( bool  requirePlayer = true)

Definition at line 3153 of file Game_local.cpp.

void idGameLocal::Clear ( void  )
private

Definition at line 198 of file Game_local.cpp.

bool idGameLocal::ClientApplySnapshot ( int  clientNum,
int  sequence 
)
virtual

Implements idGame.

Definition at line 1274 of file Game_network.cpp.

gameReturn_t idGameLocal::ClientPrediction ( int  clientNum,
const usercmd_t clientCmds,
bool  lastPredictFrame 
)
virtual

Implements idGame.

Definition at line 1505 of file Game_network.cpp.

void idGameLocal::ClientProcessEntityNetworkEventQueue ( void  )
private

Definition at line 1283 of file Game_network.cpp.

void idGameLocal::ClientProcessReliableMessage ( int  clientNum,
const idBitMsg msg 
)
virtual

Implements idGame.

Definition at line 1326 of file Game_network.cpp.

void idGameLocal::ClientReadSnapshot ( int  clientNum,
int  sequence,
const int  gameFrame,
const int  gameTime,
const int  dupeUsercmds,
const int  aheadOfServer,
const idBitMsg msg 
)
virtual

Implements idGame.

Definition at line 971 of file Game_network.cpp.

int idGameLocal::ClientRemapDecl ( declType_t  type,
int  index 
)

Definition at line 212 of file Game_network.cpp.

void idGameLocal::ClientShowSnapshot ( int  clientNum) const
private

Definition at line 880 of file Game_network.cpp.

bool idGameLocal::DownloadRequest ( const char *  IP,
const char *  guid,
const char *  paks,
char  urls[MAX_STRING_CHARS] 
)
virtual

Implements idGame.

Definition at line 1600 of file Game_network.cpp.

void idGameLocal::DPrintf ( const char *  fmt,
  ... 
) const

Definition at line 715 of file Game_local.cpp.

bool idGameLocal::Draw ( int  clientNum)
virtual

Implements idGame.

Definition at line 2708 of file Game_local.cpp.

void idGameLocal::DumpOggSounds ( void  )
private

Definition at line 1677 of file Game_local.cpp.

void idGameLocal::DWarning ( const char *  fmt,
  ... 
) const

Definition at line 757 of file Game_local.cpp.

int idGameLocal::EntitiesWithinRadius ( const idVec3  org,
float  radius,
idEntity **  entityList,
int  maxCount 
) const

Definition at line 3709 of file Game_local.cpp.

void idGameLocal::Error ( const char *  fmt,
  ... 
) const

Definition at line 783 of file Game_local.cpp.

idEntity * idGameLocal::FindEntity ( const char *  name) const

Definition at line 3630 of file Game_local.cpp.

const idDeclEntityDef * idGameLocal::FindEntityDef ( const char *  name,
bool  makeDefault = true 
) const

Definition at line 3368 of file Game_local.cpp.

const idDict * idGameLocal::FindEntityDefDict ( const char *  name,
bool  makeDefault = true 
) const

Definition at line 3384 of file Game_local.cpp.

idEntity * idGameLocal::FindEntityUsingDef ( idEntity from,
const char *  match 
) const

Definition at line 3653 of file Game_local.cpp.

idEntity * idGameLocal::FindTraceEntity ( idVec3  start,
idVec3  end,
const idTypeInfo c,
const idEntity skip 
) const

Definition at line 3680 of file Game_local.cpp.

void idGameLocal::FreePlayerPVS ( void  )
private

Definition at line 2221 of file Game_local.cpp.

void idGameLocal::FreeSnapshotsOlderThanSequence ( int  clientNum,
int  sequence 
)
private

Definition at line 454 of file Game_network.cpp.

gameState_t idGameLocal::GameState ( void  ) const

Definition at line 3463 of file Game_local.cpp.

idAAS * idGameLocal::GetAAS ( int  num) const

Definition at line 3057 of file Game_local.cpp.

idAAS * idGameLocal::GetAAS ( const char *  name) const

Definition at line 3071 of file Game_local.cpp.

idActor * idGameLocal::GetAlertEntity ( void  )

Definition at line 3820 of file Game_local.cpp.

idCamera * idGameLocal::GetCamera ( void  ) const

Definition at line 4243 of file Game_local.cpp.

idPlayer * idGameLocal::GetClientByCmdArgs ( const idCmdArgs args) const

Definition at line 2081 of file Game_local.cpp.

idPlayer * idGameLocal::GetClientByName ( const char *  name) const

Definition at line 2062 of file Game_local.cpp.

idPlayer * idGameLocal::GetClientByNum ( int  current) const

Definition at line 2047 of file Game_local.cpp.

pvsHandle_t idGameLocal::GetClientPVS ( idPlayer player,
pvsType_t  type 
)
private

Definition at line 2145 of file Game_local.cpp.

void idGameLocal::GetClientStats ( int  clientNum,
char *  data,
const int  len 
)
virtual

Implements idGame.

Definition at line 4953 of file Game_local.cpp.

int idGameLocal::GetFrameNum ( ) const
inline

Definition at line 503 of file Game_local.h.

int idGameLocal::GetGibTime ( )
inline

Definition at line 528 of file Game_local.h.

const idMaterial * idGameLocal::GetGlobalMaterial ( )

Definition at line 4719 of file Game_local.cpp.

const idVec3 & idGameLocal::GetGravity ( void  ) const

Definition at line 2292 of file Game_local.cpp.

idMapFile * idGameLocal::GetLevelMap ( void  )

Definition at line 2785 of file Game_local.cpp.

idPlayer * idGameLocal::GetLocalPlayer ( ) const

Definition at line 2128 of file Game_local.cpp.

void idGameLocal::GetMapLoadingGUI ( char  gui[MAX_STRING_CHARS])
virtual

Implements idGame.

Definition at line 4985 of file Game_local.cpp.

const char * idGameLocal::GetMapName ( void  ) const

Definition at line 2811 of file Game_local.cpp.

int idGameLocal::GetMSec ( ) const
inline

Definition at line 505 of file Game_local.h.

int idGameLocal::GetNextClientNum ( int  current) const

Definition at line 2104 of file Game_local.cpp.

const idDict & idGameLocal::GetPersistentPlayerInfo ( int  clientNum)
virtual

Implements idGame.

Definition at line 673 of file Game_local.cpp.

void idGameLocal::GetShakeSounds ( const idDict dict)
private

Definition at line 1796 of file Game_local.cpp.

int idGameLocal::GetSpawnId ( const idEntity ent) const

Definition at line 4728 of file Game_local.cpp.

int idGameLocal::GetTargets ( const idDict args,
idList< idEntityPtr< idEntity > > &  list,
const char *  ref 
) const

Definition at line 3561 of file Game_local.cpp.

int idGameLocal::GetTime ( ) const
inline

Definition at line 504 of file Game_local.h.

idEntity * idGameLocal::GetTraceEntity ( const trace_t trace) const

Definition at line 3593 of file Game_local.cpp.

const idDict * idGameLocal::GetUserInfo ( int  clientNum)
virtual

Implements idGame.

Definition at line 887 of file Game_local.cpp.

escReply_t idGameLocal::HandleESC ( idUserInterface **  gui)
virtual

Implements idGame.

Definition at line 2730 of file Game_local.cpp.

const char * idGameLocal::HandleGuiCommands ( const char *  menuCommand)
virtual

Implements idGame.

Definition at line 2764 of file Game_local.cpp.

void idGameLocal::HandleMainMenuCommands ( const char *  menuCommand,
idUserInterface gui 
)
virtual

Implements idGame.

Definition at line 2776 of file Game_local.cpp.

bool idGameLocal::InhibitEntitySpawn ( idDict spawnArgs)
private

Definition at line 3394 of file Game_local.cpp.

void idGameLocal::Init ( void  )
virtual

Implements idGame.

Definition at line 295 of file Game_local.cpp.

void idGameLocal::InitAsyncNetwork ( void  )
private

Definition at line 62 of file Game_network.cpp.

void idGameLocal::InitClientDeclRemap ( int  clientNum)
private

Definition at line 117 of file Game_network.cpp.

void idGameLocal::InitConsoleCommands ( void  )
private

Definition at line 2395 of file SysCmds.cpp.

void idGameLocal::InitFromNewMap ( const char *  mapName,
idRenderWorld renderWorld,
idSoundWorld soundWorld,
bool  isServer,
bool  isClient,
int  randSeed 
)
virtual

Implements idGame.

Definition at line 1295 of file Game_local.cpp.

bool idGameLocal::InitFromSaveGame ( const char *  mapName,
idRenderWorld renderWorld,
idSoundWorld soundWorld,
idFile saveGameFile 
)
virtual

Implements idGame.

Definition at line 1335 of file Game_local.cpp.

void idGameLocal::InitLocalClient ( int  clientNum)
private

Definition at line 105 of file Game_network.cpp.

void idGameLocal::InitScriptForMap ( void  )
private

Definition at line 1985 of file Game_local.cpp.

bool idGameLocal::InPlayerConnectedArea ( idEntity ent) const

Definition at line 2253 of file Game_local.cpp.

bool idGameLocal::InPlayerPVS ( idEntity ent) const

Definition at line 2239 of file Game_local.cpp.

void idGameLocal::KillBox ( idEntity ent,
bool  catch_teleport = false 
)

Definition at line 3733 of file Game_local.cpp.

void idGameLocal::LoadMap ( const char *  mapName,
int  randseed 
)

Definition at line 923 of file Game_local.cpp.

void idGameLocal::LocalMapRestart ( void  )

Definition at line 1047 of file Game_local.cpp.

idLocationEntity * idGameLocal::LocationForPoint ( const idVec3 point)

Definition at line 4334 of file Game_local.cpp.

void idGameLocal::MapClear ( bool  clearClients)
private

Definition at line 1589 of file Game_local.cpp.

void idGameLocal::MapPopulate ( void  )
private

Definition at line 1265 of file Game_local.cpp.

void idGameLocal::MapRestart ( void  )

Definition at line 1114 of file Game_local.cpp.

void idGameLocal::MapRestart_f ( const idCmdArgs args)
static

Definition at line 1184 of file Game_local.cpp.

void idGameLocal::MapShutdown ( void  )
virtual

Implements idGame.

Definition at line 1629 of file Game_local.cpp.

void idGameLocal::NetworkEventWarning ( const entityNetEvent_t event,
const char *  fmt,
  ... 
)
private

Definition at line 717 of file Game_network.cpp.

bool idGameLocal::NextMap ( void  )

Definition at line 1199 of file Game_local.cpp.

void idGameLocal::NextMap_f ( const idCmdArgs args)
static

Definition at line 1249 of file Game_local.cpp.

int idGameLocal::NumAAS ( void  ) const

Definition at line 3048 of file Game_local.cpp.

void idGameLocal::Printf ( const char *  fmt,
  ... 
) const

Definition at line 699 of file Game_local.cpp.

void idGameLocal::ProjectDecal ( const idVec3 origin,
const idVec3 dir,
float  depth,
bool  parallel,
float  size,
const char *  material,
float  angle = 0 
)

Definition at line 4078 of file Game_local.cpp.

void idGameLocal::RadiusDamage ( const idVec3 origin,
idEntity inflictor,
idEntity attacker,
idEntity ignoreDamage,
idEntity ignorePush,
const char *  damageDefName,
float  dmgPower = 1.0f 
)

Definition at line 3841 of file Game_local.cpp.

void idGameLocal::RadiusPush ( const idVec3 origin,
const float  radius,
const float  push,
const idEntity inflictor,
const idEntity ignore,
float  inflictorScale,
const bool  quake 
)

Definition at line 3946 of file Game_local.cpp.

void idGameLocal::RadiusPushClipModel ( const idVec3 origin,
const float  push,
const idClipModel clipModel 
)

Definition at line 4021 of file Game_local.cpp.

void idGameLocal::RandomizeInitialSpawns ( void  )
private

Definition at line 4397 of file Game_local.cpp.

void idGameLocal::ReadGameStateFromSnapshot ( const idBitMsgDelta msg)
private

Definition at line 533 of file Game_network.cpp.

void idGameLocal::RegisterEntity ( idEntity ent)

Definition at line 3180 of file Game_local.cpp.

void idGameLocal::RemoveAASObstacle ( const aasHandle_t  handle)

Definition at line 3127 of file Game_local.cpp.

void idGameLocal::RemoveAllAASObstacles ( void  )

Definition at line 3140 of file Game_local.cpp.

bool idGameLocal::RemoveEntityFromHash ( const char *  name,
idEntity ent 
)

Definition at line 3543 of file Game_local.cpp.

bool idGameLocal::RequirementMet ( idEntity activator,
const idStr requires,
int  removeItem 
)

Definition at line 3783 of file Game_local.cpp.

void idGameLocal::RunDebugInfo ( void  )
private

Definition at line 2908 of file Game_local.cpp.

gameReturn_t idGameLocal::RunFrame ( const usercmd_t clientCmds)
virtual

Implements idGame.

Definition at line 2394 of file Game_local.cpp.

void idGameLocal::SaveEntityNetworkEvent ( const idEntity ent,
int  event,
const idBitMsg msg 
)

Definition at line 432 of file Game_network.cpp.

void idGameLocal::SaveGame ( idFile saveGameFile)
virtual

Implements idGame.

Definition at line 482 of file Game_local.cpp.

idEntity * idGameLocal::SelectInitialSpawnPoint ( idPlayer player)

Definition at line 4532 of file Game_local.cpp.

allowReply_t idGameLocal::ServerAllowClient ( int  numClients,
const char *  IP,
const char *  guid,
const char *  password,
char  reason[MAX_STRING_CHARS] 
)
virtual

Implements idGame.

Definition at line 245 of file Game_network.cpp.

bool idGameLocal::ServerApplySnapshot ( int  clientNum,
int  sequence 
)
virtual

Implements idGame.

Definition at line 708 of file Game_network.cpp.

void idGameLocal::ServerClientBegin ( int  clientNum)
virtual

Implements idGame.

Definition at line 306 of file Game_network.cpp.

void idGameLocal::ServerClientConnect ( int  clientNum,
const char *  guid 
)
virtual

Implements idGame.

Definition at line 290 of file Game_network.cpp.

void idGameLocal::ServerClientDisconnect ( int  clientNum)
virtual

Implements idGame.

Definition at line 339 of file Game_network.cpp.

void idGameLocal::ServerProcessEntityNetworkEventQueue ( void  )
private

Definition at line 739 of file Game_network.cpp.

void idGameLocal::ServerProcessReliableMessage ( int  clientNum,
const idBitMsg msg 
)
virtual

Implements idGame.

Definition at line 799 of file Game_network.cpp.

int idGameLocal::ServerRemapDecl ( int  clientNum,
declType_t  type,
int  index 
)

Definition at line 190 of file Game_network.cpp.

void idGameLocal::ServerSendChatMessage ( int  to,
const char *  name,
const char *  text 
)

Definition at line 778 of file Game_network.cpp.

void idGameLocal::ServerSendDeclRemapToClient ( int  clientNum,
declType_t  type,
int  index 
)
private

Definition at line 149 of file Game_network.cpp.

void idGameLocal::ServerWriteInitialReliableMessages ( int  clientNum)
virtual

Implements idGame.

Definition at line 378 of file Game_network.cpp.

void idGameLocal::ServerWriteSnapshot ( int  clientNum,
int  sequence,
idBitMsg msg,
byte clientInPVS,
int  numPVSClients 
)
virtual

Implements idGame.

Definition at line 550 of file Game_network.cpp.

void idGameLocal::SetAASAreaState ( const idBounds bounds,
const int  areaContents,
bool  closed 
)

Definition at line 3091 of file Game_local.cpp.

void idGameLocal::SetCamera ( idCamera cam)

Definition at line 4154 of file Game_local.cpp.

void idGameLocal::SetGibTime ( int  _time)
inline

Definition at line 527 of file Game_local.h.

void idGameLocal::SetGlobalMaterial ( const idMaterial mat)

Definition at line 4710 of file Game_local.cpp.

void idGameLocal::SetLocalClient ( int  clientNum)
virtual

Implements idGame.

Definition at line 821 of file Game_local.cpp.

void idGameLocal::SetPersistentPlayerInfo ( int  clientNum,
const idDict playerInfo 
)
virtual

Implements idGame.

Definition at line 690 of file Game_local.cpp.

void idGameLocal::SetPortalState ( qhandle_t  portal,
int  blockingBits 
)

Definition at line 4356 of file Game_local.cpp.

void idGameLocal::SetServerInfo ( const idDict serverInfo)
virtual

Implements idGame.

Definition at line 899 of file Game_local.cpp.

void idGameLocal::SetSkill ( int  value)

Definition at line 3442 of file Game_local.cpp.

void idGameLocal::SetupPlayerPVS ( void  )
private

Definition at line 2160 of file Game_local.cpp.

const idDict * idGameLocal::SetUserInfo ( int  clientNum,
const idDict userInfo,
bool  isClient,
bool  canModify 
)
virtual

Implements idGame.

Definition at line 830 of file Game_local.cpp.

void idGameLocal::ShowTargets ( void  )
private

Definition at line 2849 of file Game_local.cpp.

void idGameLocal::Shutdown ( void  )
virtual

Implements idGame.

Definition at line 407 of file Game_local.cpp.

void idGameLocal::ShutdownAsyncNetwork ( void  )
private

Definition at line 90 of file Game_network.cpp.

void idGameLocal::ShutdownConsoleCommands ( void  )
private

Definition at line 2508 of file SysCmds.cpp.

bool idGameLocal::SkipCinematic ( void  )

Definition at line 4252 of file Game_local.cpp.

void idGameLocal::SortActiveEntityList ( void  )
private

Definition at line 2304 of file Game_local.cpp.

int idGameLocal::sortSpawnPoints ( const void ptr1,
const void ptr2 
)
staticprivate

Definition at line 4375 of file Game_local.cpp.

bool idGameLocal::SpawnEntityDef ( const idDict args,
idEntity **  ent = NULL,
bool  setDefaults = true 
)

Definition at line 3275 of file Game_local.cpp.

idEntity * idGameLocal::SpawnEntityType ( const idTypeInfo classdef,
const idDict args = NULL,
bool  bIsClientReadSnapshot = false 
)

Definition at line 3236 of file Game_local.cpp.

void idGameLocal::SpawnMapEntities ( void  )
private

Definition at line 3474 of file Game_local.cpp.

void idGameLocal::SpawnPlayer ( int  clientNum)
virtual

Implements idGame.

Definition at line 2007 of file Game_local.cpp.

void idGameLocal::SpreadLocations ( )

Definition at line 4285 of file Game_local.cpp.

idUserInterface * idGameLocal::StartMenu ( void  )
virtual

Implements idGame.

Definition at line 2752 of file Game_local.cpp.

void idGameLocal::SwitchTeam ( int  clientNum,
int  team 
)
virtual

Implements idGame.

Definition at line 4963 of file Game_local.cpp.

void idGameLocal::ThrottleUserInfo ( void  )
virtual

Implements idGame.

Definition at line 4737 of file Game_local.cpp.

void idGameLocal::Tokenize ( idStrList out,
const char *  in 
)

Definition at line 1573 of file Game_network.cpp.

void idGameLocal::UnregisterEntity ( idEntity ent)

Definition at line 3213 of file Game_local.cpp.

void idGameLocal::UpdateGravity ( void  )
private

Definition at line 2265 of file Game_local.cpp.

void idGameLocal::UpdateLagometer ( int  aheadOfServer,
int  dupeUsercmds 
)
private

Definition at line 935 of file Game_network.cpp.

void idGameLocal::UpdateServerInfoFlags ( void  )
private

Definition at line 4675 of file Game_local.cpp.

void idGameLocal::Warning ( const char *  fmt,
  ... 
) const

Definition at line 735 of file Game_local.cpp.

void idGameLocal::WriteGameStateToSnapshot ( idBitMsgDelta msg) const
private

Definition at line 518 of file Game_network.cpp.

Member Data Documentation

idList<idAAS *> idGameLocal::aasList
private

Definition at line 547 of file Game_local.h.

idStrList idGameLocal::aasNames
private

Definition at line 548 of file Game_local.h.

idLinkList<idEntity> idGameLocal::activeEntities

Definition at line 282 of file Game_local.h.

idCamera* idGameLocal::camera
private

Definition at line 544 of file Game_local.h.

int idGameLocal::cinematicMaxSkipTime

Definition at line 312 of file Game_local.h.

int idGameLocal::cinematicSkipTime

Definition at line 310 of file Game_local.h.

int idGameLocal::cinematicStopTime

Definition at line 311 of file Game_local.h.

idList<int> idGameLocal::clientDeclRemap[MAX_CLIENTS][DECL_MAX_TYPES]
private

Definition at line 563 of file Game_local.h.

entityState_t* idGameLocal::clientEntityStates[MAX_CLIENTS][MAX_GENTITIES]
private

Definition at line 565 of file Game_local.h.

int idGameLocal::clientPVS[MAX_CLIENTS][ENTITY_PVS_SIZE]
private

Definition at line 566 of file Game_local.h.

float idGameLocal::clientSmoothing

Definition at line 334 of file Game_local.h.

snapshot_t* idGameLocal::clientSnapshots[MAX_CLIENTS]
private

Definition at line 567 of file Game_local.h.

idClip idGameLocal::clip

Definition at line 296 of file Game_local.h.

int idGameLocal::currentInitialSpot
private

Definition at line 576 of file Game_local.h.

idEditEntities* idGameLocal::editEntities

Definition at line 308 of file Game_local.h.

idEntity* idGameLocal::entities[MAX_GENTITIES]

Definition at line 275 of file Game_local.h.

int idGameLocal::entityDefBits

Definition at line 335 of file Game_local.h.

idHashIndex idGameLocal::entityHash

Definition at line 279 of file Game_local.h.

idBlockAlloc<entityState_t,256> idGameLocal::entityStateAllocator
private

Definition at line 568 of file Game_local.h.

idEventQueue idGameLocal::eventQueue
private

Definition at line 571 of file Game_local.h.

int idGameLocal::firstFreeIndex

Definition at line 277 of file Game_local.h.

idThread* idGameLocal::frameCommandThread

Definition at line 294 of file Game_local.h.

int idGameLocal::framenum

Definition at line 317 of file Game_local.h.

gameState_t idGameLocal::gamestate
private

Definition at line 559 of file Game_local.h.

gameType_t idGameLocal::gameType

Definition at line 324 of file Game_local.h.

const idMaterial* idGameLocal::globalMaterial
private

Definition at line 545 of file Game_local.h.

float idGameLocal::globalShaderParms[MAX_GLOBAL_SHADER_PARMS]

Definition at line 289 of file Game_local.h.

idVec3 idGameLocal::gravity
private

Definition at line 558 of file Game_local.h.

bool idGameLocal::inCinematic

Definition at line 313 of file Game_local.h.

bool idGameLocal::influenceActive
private

Definition at line 560 of file Game_local.h.

const int idGameLocal::INITIAL_SPAWN_COUNT = 1
staticprivate

Definition at line 533 of file Game_local.h.

idStaticList<idEntity *, MAX_GENTITIES> idGameLocal::initialSpots
private

Definition at line 575 of file Game_local.h.

bool idGameLocal::isClient

Definition at line 327 of file Game_local.h.

bool idGameLocal::isMultiplayer

Definition at line 325 of file Game_local.h.

bool idGameLocal::isNewFrame

Definition at line 333 of file Game_local.h.

bool idGameLocal::isServer

Definition at line 326 of file Game_local.h.

byte idGameLocal::lagometer[LAGO_IMG_HEIGHT][LAGO_IMG_WIDTH][4]
private

Definition at line 588 of file Game_local.h.

idEntityPtr<idActor> idGameLocal::lastAIAlertEntity
private

Definition at line 550 of file Game_local.h.

int idGameLocal::lastAIAlertTime
private

Definition at line 551 of file Game_local.h.

int idGameLocal::lastGUI

Definition at line 340 of file Game_local.h.

idEntityPtr<idEntity> idGameLocal::lastGUIEnt

Definition at line 339 of file Game_local.h.

int idGameLocal::localClientNum

Definition at line 330 of file Game_local.h.

idLocationEntity** idGameLocal::locationEntities
private

Definition at line 542 of file Game_local.h.

bool idGameLocal::mapCycleLoaded
private

Definition at line 537 of file Game_local.h.

idMapFile* idGameLocal::mapFile
private

Definition at line 536 of file Game_local.h.

idStr idGameLocal::mapFileName
private

Definition at line 535 of file Game_local.h.

int idGameLocal::mapSpawnCount
private

Definition at line 540 of file Game_local.h.

idMultiplayerGame idGameLocal::mpGame

Definition at line 305 of file Game_local.h.

int idGameLocal::msec

Definition at line 320 of file Game_local.h.

idDict idGameLocal::newInfo
private

Definition at line 584 of file Game_local.h.

int idGameLocal::nextGibTime
private

Definition at line 561 of file Game_local.h.

int idGameLocal::num_entities

Definition at line 278 of file Game_local.h.

int idGameLocal::numClients

Definition at line 271 of file Game_local.h.

int idGameLocal::numEntitiesToDeactivate

Definition at line 283 of file Game_local.h.

idDict idGameLocal::persistentLevelInfo

Definition at line 286 of file Game_local.h.

idDict idGameLocal::persistentPlayerInfo[MAX_CLIENTS]

Definition at line 274 of file Game_local.h.

pvsHandle_t idGameLocal::playerConnectedAreas
private

Definition at line 556 of file Game_local.h.

pvsHandle_t idGameLocal::playerPVS
private

Definition at line 555 of file Game_local.h.

int idGameLocal::previousTime

Definition at line 318 of file Game_local.h.

idProgram idGameLocal::program

Definition at line 293 of file Game_local.h.

idPush idGameLocal::push

Definition at line 297 of file Game_local.h.

idPVS idGameLocal::pvs

Definition at line 298 of file Game_local.h.

idRandom idGameLocal::random

Definition at line 291 of file Game_local.h.

int idGameLocal::realClientTime

Definition at line 332 of file Game_local.h.

idEventQueue idGameLocal::savedEventQueue
private

Definition at line 572 of file Game_local.h.

idDict idGameLocal::serverInfo

Definition at line 270 of file Game_local.h.

idStr idGameLocal::sessionCommand

Definition at line 303 of file Game_local.h.

idStrList idGameLocal::shakeSounds
private

Definition at line 586 of file Game_local.h.

bool idGameLocal::skipCinematic

Definition at line 314 of file Game_local.h.

idSmokeParticles* idGameLocal::smokeParticles

Definition at line 307 of file Game_local.h.

idBlockAlloc<snapshot_t,64> idGameLocal::snapshotAllocator
private

Definition at line 569 of file Game_local.h.

idLinkList<idEntity> idGameLocal::snapshotEntities

Definition at line 331 of file Game_local.h.

bool idGameLocal::sortPushers

Definition at line 284 of file Game_local.h.

bool idGameLocal::sortTeamMasters

Definition at line 285 of file Game_local.h.

idDict idGameLocal::spawnArgs
private

Definition at line 553 of file Game_local.h.

int idGameLocal::spawnCount
private

Definition at line 539 of file Game_local.h.

idLinkList<idEntity> idGameLocal::spawnedEntities

Definition at line 281 of file Game_local.h.

int idGameLocal::spawnIds[MAX_GENTITIES]

Definition at line 276 of file Game_local.h.

idStaticList<spawnSpot_t, MAX_GENTITIES> idGameLocal::spawnSpots
private

Definition at line 574 of file Game_local.h.

const char * idGameLocal::sufaceTypeNames
static
Initial value:
= {
"none", "metal", "stone", "flesh", "wood", "cardboard", "liquid", "glass", "plastic",
"ricochet", "surftype10", "surftype11", "surftype12", "surftype13", "surftype14", "surftype15"
}

Definition at line 337 of file Game_local.h.

idEntityFx* idGameLocal::testFx

Definition at line 301 of file Game_local.h.

idTestModel* idGameLocal::testmodel

Definition at line 300 of file Game_local.h.

int idGameLocal::time

Definition at line 319 of file Game_local.h.

usercmd_t idGameLocal::usercmds[MAX_CLIENTS]

Definition at line 273 of file Game_local.h.

idDict idGameLocal::userInfo[MAX_CLIENTS]

Definition at line 272 of file Game_local.h.

int idGameLocal::vacuumAreaNum

Definition at line 322 of file Game_local.h.

idWorldspawn* idGameLocal::world

Definition at line 280 of file Game_local.h.


The documentation for this class was generated from the following files: