mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-21 12:11:07 +00:00
Untangle the epic precompiled.h mess
Don't include the lazy precompiled.h everywhere, only what's required for the compilation unit. platform.h needs to be included instead to provide all essential defines and types. All includes use the relative path to the neo or the game specific root. Move all idlib related includes from idlib/Lib.h to precompiled.h. precompiled.h still exists for the MFC stuff in tools/. Add some missing header guards.
This commit is contained in:
parent
b96309c22b
commit
afebd7e1e5
396 changed files with 2246 additions and 995 deletions
|
@ -29,6 +29,14 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __COLLISIONMODELMANAGER_H__
|
||||
#define __COLLISIONMODELMANAGER_H__
|
||||
|
||||
#include "idlib/geometry/TraceModel.h"
|
||||
#include "idlib/math/Vector.h"
|
||||
#include "idlib/math/Matrix.h"
|
||||
#include "idlib/bv/Bounds.h"
|
||||
#include "idlib/MapFile.h"
|
||||
|
||||
class idMaterial;
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,11 +26,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/geometry/JointTransform.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
|
||||
#include "AF.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_AF_H__
|
||||
#define __GAME_AF_H__
|
||||
|
||||
#include "idlib/Parser.h"
|
||||
#include "framework/DeclAF.h"
|
||||
#include "renderer/Model.h"
|
||||
|
||||
#include "physics/Physics_AF.h"
|
||||
#include "Entity.h"
|
||||
#include "anim/Anim.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -26,11 +26,17 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/geometry/JointTransform.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Item.h"
|
||||
#include "Player.h"
|
||||
#include "Fx.h"
|
||||
#include "SmokeParticles.h"
|
||||
|
||||
#include "AFEntity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_AFENTITY_H__
|
||||
#define __GAME_AFENTITY_H__
|
||||
|
||||
#include "physics/Physics_AF.h"
|
||||
#include "physics/Force_Constant.h"
|
||||
#include "Entity.h"
|
||||
#include "AF.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -26,10 +26,15 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "Item.h"
|
||||
#include "Light.h"
|
||||
#include "Projectile.h"
|
||||
#include "WorldSpawn.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "Actor.h"
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -29,6 +29,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_ACTOR_H__
|
||||
#define __GAME_ACTOR_H__
|
||||
|
||||
#include "AFEntity.h"
|
||||
#include "IK.h"
|
||||
#include "PlayerView.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,11 +26,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "framework/DeclEntityDef.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "Fx.h"
|
||||
|
||||
#include "BrittleFracture.h"
|
||||
|
||||
CLASS_DECLARATION( idEntity, idBrittleFracture )
|
||||
EVENT( EV_Activate, idBrittleFracture::Event_Activate )
|
||||
|
|
|
@ -29,6 +29,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_BRITTLEFRACTURE_H__
|
||||
#define __GAME_BRITTLEFRACTURE_H__
|
||||
|
||||
#include "physics/Physics_RigidBody.h"
|
||||
#include "physics/Physics_StaticMulti.h"
|
||||
#include "physics/Clip.h"
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -26,10 +26,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "Camera.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_CAMERA_H__
|
||||
#define __GAME_CAMERA_H__
|
||||
|
||||
#include "idlib/math/Quat.h"
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -26,10 +26,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "EndLevel.h"
|
||||
|
||||
/*
|
||||
|
||||
|
|
|
@ -26,6 +26,11 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#ifndef __GAME_ENDLEVEL_H__
|
||||
#define __GAME_ENDLEVEL_H__
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
class idTarget_EndLevel : public idEntity {
|
||||
public:
|
||||
CLASS_PROTOTYPE( idTarget_EndLevel );
|
||||
|
@ -63,3 +68,5 @@ private:
|
|||
|
||||
void Event_Trigger( idEntity *activator );
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -26,10 +26,25 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/geometry/JointTransform.h"
|
||||
#include "idlib/LangDict.h"
|
||||
#include "framework/async/NetworkSystem.h"
|
||||
#include "framework/DeclEntityDef.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "physics/Physics_Parametric.h"
|
||||
#include "physics/Physics_Actor.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "Fx.h"
|
||||
#include "AFEntity.h"
|
||||
#include "Player.h"
|
||||
#include "Mover.h"
|
||||
#include "WorldSpawn.h"
|
||||
#include "SmokeParticles.h"
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,16 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_ENTITY_H__
|
||||
#define __GAME_ENTITY_H__
|
||||
|
||||
#include "idlib/math/Curve.h"
|
||||
#include "framework/DeclParticle.h"
|
||||
|
||||
#include "physics/Physics_Static.h"
|
||||
#include "physics/Physics.h"
|
||||
#include "script/Script_Program.h"
|
||||
#include "gamesys/Class.h"
|
||||
#include "gamesys/Event.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
11
d3xp/Fx.cpp
11
d3xp/Fx.cpp
|
@ -26,10 +26,15 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Player.h"
|
||||
#include "Projectile.h"
|
||||
#include "WorldSpawn.h"
|
||||
|
||||
#include "Fx.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_FX_H__
|
||||
#define __GAME_FX_H__
|
||||
|
||||
#include "renderer/RenderWorld.h"
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,11 +26,17 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "sys/platform.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "physics/Physics_Monster.h"
|
||||
#include "ai/AI.h"
|
||||
#include "Player.h"
|
||||
#include "Light.h"
|
||||
#include "WorldSpawn.h"
|
||||
#include "Sound.h"
|
||||
#include "Misc.h"
|
||||
|
||||
#include "GameEdit.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_EDIT_H__
|
||||
#define __GAME_EDIT_H__
|
||||
|
||||
#include "framework/DeclPDA.h"
|
||||
|
||||
#include "physics/Force_Drag.h"
|
||||
#include "Entity.h"
|
||||
|
||||
class Player;
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -26,8 +26,26 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/LangDict.h"
|
||||
#include "idlib/Timer.h"
|
||||
#include "framework/async/NetworkSystem.h"
|
||||
#include "framework/BuildVersion.h"
|
||||
#include "framework/DeclEntityDef.h"
|
||||
#include "framework/FileSystem.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "gamesys/SysCmds.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "ai/AI.h"
|
||||
#include "anim/Anim_Testmodel.h"
|
||||
#include "Camera.h"
|
||||
#include "SmokeParticles.h"
|
||||
#include "Player.h"
|
||||
#include "WorldSpawn.h"
|
||||
#include "Misc.h"
|
||||
#include "Trigger.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
|
||||
|
|
|
@ -31,6 +31,26 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
#include "GameBase.h"
|
||||
|
||||
#include "idlib/containers/StrList.h"
|
||||
#include "idlib/containers/LinkList.h"
|
||||
#include "idlib/BitMsg.h"
|
||||
#include "framework/Game.h"
|
||||
|
||||
#include "gamesys/SaveGame.h"
|
||||
#include "physics/Clip.h"
|
||||
#include "physics/Push.h"
|
||||
#include "script/Script_Program.h"
|
||||
#include "ai/AAS.h"
|
||||
#include "anim/Anim.h"
|
||||
#include "Pvs.h"
|
||||
#include "MultiplayerGame.h"
|
||||
|
||||
#ifdef ID_DEBUG_UNINITIALIZED_MEMORY
|
||||
// This is real evil but allows the code to inspect arbitrary class variables.
|
||||
#define private public
|
||||
#define protected public
|
||||
#endif
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
@ -38,12 +58,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===============================================================================
|
||||
*/
|
||||
|
||||
#ifdef ID_DEBUG_UNINITIALIZED_MEMORY
|
||||
// This is real evil but allows the code to inspect arbitrary class variables.
|
||||
#define private public
|
||||
#define protected public
|
||||
#endif
|
||||
class idDeclEntityDef;
|
||||
class idRenderWorld;
|
||||
class idSoundWorld;
|
||||
class idUserInterface;
|
||||
|
||||
extern idRenderWorld * gameRenderWorld;
|
||||
extern idSoundWorld * gameSoundWorld;
|
||||
|
@ -55,41 +73,29 @@ class idPlayer;
|
|||
class idCamera;
|
||||
class idWorldspawn;
|
||||
class idTestModel;
|
||||
class idAAS;
|
||||
class idAI;
|
||||
class idSmokeParticles;
|
||||
class idEntityFx;
|
||||
class idTypeInfo;
|
||||
class idProgram;
|
||||
class idThread;
|
||||
class idEditEntities;
|
||||
class idLocationEntity;
|
||||
|
||||
//============================================================================
|
||||
|
||||
#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"
|
||||
|
||||
//============================================================================
|
||||
|
||||
extern const int NUM_RENDER_PORTAL_BITS;
|
||||
|
||||
void gameError( const char *fmt, ... );
|
||||
|
||||
extern idRenderWorld * gameRenderWorld;
|
||||
extern idSoundWorld * gameSoundWorld;
|
||||
|
||||
extern const int NUM_RENDER_PORTAL_BITS;
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
Local implementation of the public game interface.
|
||||
|
||||
===============================================================================
|
||||
*/
|
||||
typedef struct entityState_s {
|
||||
int entityNumber;
|
||||
idBitMsg state;
|
||||
|
@ -709,62 +715,4 @@ extern const float DEFAULT_GRAVITY;
|
|||
extern const idVec3 DEFAULT_GRAVITY_VEC3;
|
||||
extern const int CINEMATIC_SKIP_DELAY;
|
||||
|
||||
//============================================================================
|
||||
|
||||
#include "physics/Force.h"
|
||||
#include "physics/Force_Constant.h"
|
||||
#include "physics/Force_Drag.h"
|
||||
#ifdef _D3XP
|
||||
#include "physics/Force_Grab.h"
|
||||
#endif
|
||||
#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"
|
||||
#ifdef _D3XP
|
||||
#include "Grabber.h"
|
||||
#endif
|
||||
#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"
|
||||
|
||||
#endif /* !__GAME_LOCAL_H__ */
|
||||
|
|
|
@ -26,8 +26,14 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "framework/FileSystem.h"
|
||||
#include "framework/async/NetworkSystem.h"
|
||||
#include "renderer/RenderSystem.h"
|
||||
|
||||
#include "gamesys/SysCmds.h"
|
||||
#include "Entity.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
|
||||
|
|
|
@ -25,14 +25,19 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#ifdef _D3XP
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "sys/platform.h"
|
||||
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "ai/AI.h"
|
||||
#include "Player.h"
|
||||
#include "Moveable.h"
|
||||
#include "Misc.h"
|
||||
|
||||
#include "Grabber.h"
|
||||
|
||||
#define MAX_DRAG_TRACE_DISTANCE 384.0f
|
||||
#define TRACE_BOUNDS_SIZE 3.f
|
||||
#define HOLD_DISTANCE 72.f
|
||||
|
|
|
@ -25,8 +25,15 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
|
||||
#ifndef __GAME_GRABBER_H__
|
||||
#define __GAME_GRABBER_H__
|
||||
|
||||
#ifdef _D3XP
|
||||
|
||||
#include "physics/Force_Grab.h"
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
@ -84,3 +91,5 @@ private:
|
|||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -26,10 +26,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/geometry/JointTransform.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Mover.h"
|
||||
|
||||
#include "IK.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,11 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_IK_H__
|
||||
#define __GAME_IK_H__
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
class idSaveGame;
|
||||
class idRestoreGame;
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,11 +26,15 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/RenderSystem.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Player.h"
|
||||
#include "Fx.h"
|
||||
#include "SmokeParticles.h"
|
||||
|
||||
#include "Item.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_ITEM_H__
|
||||
#define __GAME_ITEM_H__
|
||||
|
||||
#include "physics/Physics_RigidBody.h"
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -26,10 +26,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
|
||||
#include "Light.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_LIGHT_H__
|
||||
#define __GAME_LIGHT_H__
|
||||
|
||||
#include "gamesys/Event.h"
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -31,10 +31,19 @@ Various utility objects and functions.
|
|||
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "ai/AI.h"
|
||||
#include "Player.h"
|
||||
#include "Camera.h"
|
||||
#include "WorldSpawn.h"
|
||||
#include "Moveable.h"
|
||||
#include "SmokeParticles.h"
|
||||
|
||||
#include "Misc.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_MISC_H__
|
||||
#define __GAME_MISC_H__
|
||||
|
||||
#include "physics/Physics_Parametric.h"
|
||||
#include "physics/Force_Field.h"
|
||||
#include "physics/Force_Spring.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -26,10 +26,14 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "ai/AI.h"
|
||||
#include "Fx.h"
|
||||
|
||||
#include "Moveable.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_MOVEABLE_H__
|
||||
#define __GAME_MOVEABLE_H__
|
||||
|
||||
#include "physics/Physics_RigidBody.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "gamesys/Event.h"
|
||||
#include "Entity.h"
|
||||
#include "Player.h"
|
||||
#include "Projectile.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "Mover.h"
|
||||
|
||||
// _D3XP : rename all gameLocal.time to gameLocal.slow.time for merge!
|
||||
|
||||
|
|
|
@ -29,6 +29,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_MOVER_H__
|
||||
#define __GAME_MOVER_H__
|
||||
|
||||
#include "physics/Physics_Parametric.h"
|
||||
#include "Entity.h"
|
||||
|
||||
extern const idEventDef EV_TeamBlocked;
|
||||
extern const idEventDef EV_PartBlocked;
|
||||
extern const idEventDef EV_ReachedPos;
|
||||
|
|
|
@ -26,11 +26,21 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/BitMsg.h"
|
||||
#include "idlib/Str.h"
|
||||
#include "idlib/LangDict.h"
|
||||
#include "framework/async/NetworkSystem.h"
|
||||
#include "framework/FileSystem.h"
|
||||
#include "framework/DeclEntityDef.h"
|
||||
#include "ui/UserInterface.h"
|
||||
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Player.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "MultiplayerGame.h"
|
||||
|
||||
// could be a problem if players manage to go down sudden deaths till this .. oh well
|
||||
#define LASTMAN_NOLIVES -20
|
||||
|
||||
|
|
|
@ -29,6 +29,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __MULTIPLAYERGAME_H__
|
||||
#define __MULTIPLAYERGAME_H__
|
||||
|
||||
#include "idlib/BitMsg.h"
|
||||
#include "idlib/Str.h"
|
||||
#include "ui/UserInterface.h"
|
||||
|
||||
#include "GameBase.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,20 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/LangDict.h"
|
||||
#include "framework/async/NetworkSystem.h"
|
||||
#include "framework/DeclEntityDef.h"
|
||||
#include "renderer/RenderSystem.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "ai/AI.h"
|
||||
#include "WorldSpawn.h"
|
||||
#include "Player.h"
|
||||
#include "Camera.h"
|
||||
#include "Fx.h"
|
||||
#include "Misc.h"
|
||||
|
||||
const int ASYNC_PLAYER_INV_AMMO_BITS = idMath::BitsForInteger( 999 ); // 9 bits to cover the range [0, 999]
|
||||
const int ASYNC_PLAYER_INV_CLIP_BITS = -7; // -7 bits to cover the range [-1, 60]
|
||||
|
|
|
@ -29,6 +29,19 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_PLAYER_H__
|
||||
#define __GAME_PLAYER_H__
|
||||
|
||||
#include "idlib/math/Interpolate.h"
|
||||
|
||||
#include "physics/Physics_Player.h"
|
||||
#include "Item.h"
|
||||
#include "Actor.h"
|
||||
#include "Weapon.h"
|
||||
#include "Projectile.h"
|
||||
#include "PlayerIcon.h"
|
||||
#include "GameEdit.h"
|
||||
|
||||
class idAI;
|
||||
class idFuncMountedObject;
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "PlayerIcon.h"
|
||||
|
||||
static const char * iconKeys[ ICON_NONE ] = {
|
||||
|
|
|
@ -26,10 +26,15 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/RenderWorld.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "gamesys/SaveGame.h"
|
||||
#include "GameBase.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "PlayerView.h"
|
||||
|
||||
// _D3XP : rename all gameLocal.time to gameLocal.slow.time for merge!
|
||||
|
||||
|
|
|
@ -29,6 +29,14 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_PLAYERVIEW_H__
|
||||
#define __GAME_PLAYERVIEW_H__
|
||||
|
||||
#include "idlib/math/Vector.h"
|
||||
#include "idlib/Dict.h"
|
||||
#include "renderer/Material.h"
|
||||
#include "renderer/RenderWorld.h"
|
||||
|
||||
class idSaveGame;
|
||||
class idRestoreGame;
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,18 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "ai/AI.h"
|
||||
#include "Player.h"
|
||||
#include "Mover.h"
|
||||
#include "SmokeParticles.h"
|
||||
#include "Misc.h"
|
||||
|
||||
#include "Projectile.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_PROJECTILE_H__
|
||||
#define __GAME_PROJECTILE_H__
|
||||
|
||||
#include "physics/Physics_RigidBody.h"
|
||||
#include "physics/Force_Constant.h"
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,13 +26,14 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/Timer.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
|
||||
#define MAX_BOUNDS_AREAS 16
|
||||
#include "Pvs.h"
|
||||
|
||||
#define MAX_BOUNDS_AREAS 16
|
||||
|
||||
typedef struct pvsPassage_s {
|
||||
byte * canSee; // bit set for all portals that can be seen through this passage
|
||||
|
|
|
@ -29,6 +29,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_PVS_H__
|
||||
#define __GAME_PVS_H__
|
||||
|
||||
#include "idlib/geometry/Winding.h"
|
||||
#include "idlib/math/Vector.h"
|
||||
#include "idlib/bv/Bounds.h"
|
||||
|
||||
/*
|
||||
===================================================================================
|
||||
|
||||
|
|
|
@ -25,24 +25,23 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
/*
|
||||
|
||||
SecurityCamera.cpp
|
||||
|
||||
Security camera that triggers targets when player is in view
|
||||
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "sys/platform.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "physics/Physics_RigidBody.h"
|
||||
#include "Entity.h"
|
||||
#include "Light.h"
|
||||
#include "Player.h"
|
||||
#include "Fx.h"
|
||||
|
||||
#include "SecurityCamera.h"
|
||||
|
||||
/***********************************************************************
|
||||
|
||||
idSecurityCamera
|
||||
|
||||
Security camera that triggers targets when player is in view
|
||||
|
||||
***********************************************************************/
|
||||
|
||||
const idEventDef EV_SecurityCam_ReverseSweep( "<reverseSweep>" );
|
||||
|
|
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_SECURITYCAMERA_H__
|
||||
#define __GAME_SECURITYCAMERA_H__
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===================================================================================
|
||||
|
||||
|
|
|
@ -26,11 +26,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
#include "Entity.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "SmokeParticles.h"
|
||||
|
||||
static const char *smokeParticle_SnapshotName = "_SmokeParticle_Snapshot_";
|
||||
|
||||
/*
|
||||
|
|
|
@ -29,6 +29,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __SMOKEPARTICLES_H__
|
||||
#define __SMOKEPARTICLES_H__
|
||||
|
||||
#include "idlib/math/Random.h"
|
||||
#include "idlib/math/Vector.h"
|
||||
#include "idlib/math/Matrix.h"
|
||||
#include "framework/DeclParticle.h"
|
||||
#include "renderer/RenderWorld.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "Entity.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "Sound.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_SOUND_H__
|
||||
#define __GAME_SOUND_H__
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -25,22 +25,29 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
/*
|
||||
|
||||
Invisible entities that affect other entities or the world when activated.
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/LangDict.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
*/
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "Light.h"
|
||||
#include "Player.h"
|
||||
#include "Mover.h"
|
||||
#include "Misc.h"
|
||||
#include "WorldSpawn.h"
|
||||
#include "Sound.h"
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "Target.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
idTarget
|
||||
|
||||
Invisible entities that affect other entities or the world when activated.
|
||||
|
||||
===============================================================================
|
||||
*/
|
||||
|
||||
|
|
|
@ -29,6 +29,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_TARGET_H__
|
||||
#define __GAME_TARGET_H__
|
||||
|
||||
#include "idlib/math/Interpolate.h"
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -26,11 +26,11 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "sys/platform.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "Trigger.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -29,6 +29,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_TRIGGER_H__
|
||||
#define __GAME_TRIGGER_H__
|
||||
|
||||
#include "gamesys/Event.h"
|
||||
#include "Entity.h"
|
||||
|
||||
extern const idEventDef EV_Enable;
|
||||
extern const idEventDef EV_Disable;
|
||||
|
||||
|
|
|
@ -26,10 +26,19 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "framework/DeclEntityDef.h"
|
||||
#include "framework/DeclSkin.h"
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "ai/AI.h"
|
||||
#include "Player.h"
|
||||
#include "Trigger.h"
|
||||
#include "SmokeParticles.h"
|
||||
#include "WorldSpawn.h"
|
||||
#include "Misc.h"
|
||||
|
||||
#include "Weapon.h"
|
||||
|
||||
/***********************************************************************
|
||||
|
||||
|
|
|
@ -29,6 +29,14 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_WEAPON_H__
|
||||
#define __GAME_WEAPON_H__
|
||||
|
||||
#include "script/Script_Thread.h"
|
||||
#include "Entity.h"
|
||||
#include "Light.h"
|
||||
#include "Grabber.h"
|
||||
#include "Actor.h"
|
||||
|
||||
class idFuncEmitter;
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -25,22 +25,20 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
/*
|
||||
game_worldspawn.cpp
|
||||
|
||||
Worldspawn class. Each map has one worldspawn which handles global spawnargs.
|
||||
#include "sys/platform.h"
|
||||
#include "framework/FileSystem.h"
|
||||
|
||||
*/
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
|
||||
#include "../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "Game_local.h"
|
||||
#include "WorldSpawn.h"
|
||||
|
||||
/*
|
||||
================
|
||||
idWorldspawn
|
||||
|
||||
Worldspawn class. Each map has one worldspawn which handles global spawnargs.
|
||||
Every map should have exactly one worldspawn.
|
||||
================
|
||||
*/
|
||||
|
|
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __GAME_WORLDSPAWN_H__
|
||||
#define __GAME_WORLDSPAWN_H__
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,11 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "framework/Common.h"
|
||||
#include "tools/compilers/aas/AASFileManager.h"
|
||||
|
||||
#include "AAS_local.h"
|
||||
#include "ai/AAS_local.h"
|
||||
|
||||
/*
|
||||
============
|
||||
|
|
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __AAS_H__
|
||||
#define __AAS_H__
|
||||
|
||||
#include "tools/compilers/aas/AASFile.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,12 +26,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "AAS_local.h"
|
||||
#include "../Game_local.h" // for cvars and debug drawing
|
||||
#include "sys/platform.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "ai/AI.h"
|
||||
#include "Player.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "ai/AAS_local.h"
|
||||
|
||||
/*
|
||||
============
|
||||
|
|
|
@ -29,9 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __AAS_LOCAL_H__
|
||||
#define __AAS_LOCAL_H__
|
||||
|
||||
#include "AAS.h"
|
||||
#include "../Pvs.h"
|
||||
|
||||
#include "ai/AAS.h"
|
||||
#include "Pvs.h"
|
||||
|
||||
class idRoutingCache {
|
||||
friend class idAASLocal;
|
||||
|
|
|
@ -26,10 +26,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "framework/Common.h"
|
||||
|
||||
#include "AAS_local.h"
|
||||
#include "ai/AAS_local.h"
|
||||
|
||||
#define SUBSAMPLE_WALK_PATH 1
|
||||
#define SUBSAMPLE_FLY_PATH 0
|
||||
|
|
|
@ -26,11 +26,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "AAS_local.h"
|
||||
#include "../Game_local.h" // for print and error
|
||||
#include "ai/AAS_local.h"
|
||||
|
||||
#define CACHETYPE_AREA 1
|
||||
#define CACHETYPE_PORTAL 2
|
||||
|
|
|
@ -26,10 +26,17 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/math/Quat.h"
|
||||
#include "framework/DeclEntityDef.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Moveable.h"
|
||||
#include "Fx.h"
|
||||
#include "SmokeParticles.h"
|
||||
#include "Misc.h"
|
||||
|
||||
#include "ai/AI.h"
|
||||
|
||||
static const char *moveCommandString[ NUM_MOVE_COMMANDS ] = {
|
||||
"MOVE_NONE",
|
||||
|
|
|
@ -29,6 +29,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __AI_H__
|
||||
#define __AI_H__
|
||||
|
||||
#include "physics/Physics_Monster.h"
|
||||
#include "Entity.h"
|
||||
#include "Actor.h"
|
||||
#include "Projectile.h"
|
||||
|
||||
class idFuncEmitter;
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
@ -232,6 +239,8 @@ private:
|
|||
float maxDistSqr;
|
||||
};
|
||||
|
||||
class idAI;
|
||||
|
||||
class idAASFindAttackPosition : public idAASCallback {
|
||||
public:
|
||||
idAASFindAttackPosition( const idAI *self, const idMat3 &gravityAxis, idEntity *target, const idVec3 &targetPos, const idVec3 &fireOffset );
|
||||
|
|
|
@ -33,10 +33,13 @@ Vagary specific AI code
|
|||
|
||||
***********************************************************************/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "script/Script_Thread.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Moveable.h"
|
||||
|
||||
#include "ai/AI.h"
|
||||
|
||||
class idAI_Vagary : public idAI {
|
||||
public:
|
||||
|
|
|
@ -26,10 +26,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "Moveable.h"
|
||||
#include "Misc.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "ai/AI.h"
|
||||
|
||||
/***********************************************************************
|
||||
|
||||
|
|
|
@ -26,10 +26,15 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/containers/Queue.h"
|
||||
#include "idlib/geometry/Winding2D.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Moveable.h"
|
||||
#include "WorldSpawn.h"
|
||||
|
||||
#include "ai/AI.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
|
|
@ -26,10 +26,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/geometry/JointTransform.h"
|
||||
#include "idlib/math/Quat.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "anim/Anim.h"
|
||||
|
||||
bool idAnimManager::forceExport = false;
|
||||
|
||||
|
|
|
@ -28,6 +28,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __ANIM_H__
|
||||
#define __ANIM_H__
|
||||
|
||||
#include "idlib/containers/StrList.h"
|
||||
#include "idlib/containers/HashTable.h"
|
||||
#include "idlib/Dict.h"
|
||||
#include "renderer/Model.h"
|
||||
|
||||
#include "physics/Clip.h"
|
||||
|
||||
//
|
||||
// animation channels
|
||||
// these can be changed by modmakers and licensees to be whatever they need.
|
||||
|
|
|
@ -26,10 +26,19 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/containers/BinSearch.h"
|
||||
#include "idlib/geometry/JointTransform.h"
|
||||
#include "idlib/math/Quat.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "ai/AI.h"
|
||||
#include "Entity.h"
|
||||
#include "Fx.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "anim/Anim.h"
|
||||
|
||||
static const char *channelNames[ ANIM_NumAnimChannels ] = {
|
||||
"all", "torso", "legs", "head", "eyelids"
|
||||
|
|
|
@ -26,11 +26,14 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "framework/Licensee.h"
|
||||
#include "MayaImport/maya_main.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "../../MayaImport/maya_main.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "anim/Anim.h"
|
||||
|
||||
/***********************************************************************
|
||||
|
||||
|
|
|
@ -25,6 +25,15 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "sys/platform.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "anim/Anim_Testmodel.h"
|
||||
|
||||
/*
|
||||
=============================================================================
|
||||
|
||||
|
@ -48,11 +57,6 @@ move around it to view it from different angles.
|
|||
=============================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "../Game_local.h"
|
||||
|
||||
CLASS_DECLARATION( idAnimatedEntity, idTestModel )
|
||||
EVENT( EV_FootstepLeft, idTestModel::Event_Footstep )
|
||||
EVENT( EV_FootstepRight, idTestModel::Event_Footstep )
|
||||
|
|
|
@ -29,6 +29,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __ANIM_TESTMODEL_H__
|
||||
#define __ANIM_TESTMODEL_H__
|
||||
|
||||
#include "physics/Physics_Parametric.h"
|
||||
#include "Entity.h"
|
||||
#include "Actor.h"
|
||||
|
||||
/*
|
||||
==============================================================================================
|
||||
|
||||
|
|
|
@ -25,6 +25,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "sys/platform.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
|
||||
#include "Class.h"
|
||||
|
||||
/*
|
||||
|
||||
Base class for all C++ objects. Provides fast run-time type checking and run-time
|
||||
|
@ -32,14 +39,6 @@ instancing of objects.
|
|||
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "../Game_local.h"
|
||||
|
||||
#include "TypeInfo.h"
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
|
||||
idTypeInfo
|
||||
|
|
|
@ -25,6 +25,17 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
|
||||
#ifndef __SYS_CLASS_H__
|
||||
#define __SYS_CLASS_H__
|
||||
|
||||
#include "idlib/containers/Hierarchy.h"
|
||||
|
||||
#include "gamesys/Event.h"
|
||||
|
||||
class idClass;
|
||||
class idTypeInfo;
|
||||
|
||||
/*
|
||||
|
||||
Base class for all game objects. Provides fast run-time type checking and run-time
|
||||
|
@ -32,12 +43,6 @@ instancing of objects.
|
|||
|
||||
*/
|
||||
|
||||
#ifndef __SYS_CLASS_H__
|
||||
#define __SYS_CLASS_H__
|
||||
|
||||
class idClass;
|
||||
class idTypeInfo;
|
||||
|
||||
extern const idEventDef EV_Remove;
|
||||
extern const idEventDef EV_SafeRemove;
|
||||
|
||||
|
|
|
@ -25,10 +25,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "sys/platform.h"
|
||||
#include "Player.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "DebugGraph.h"
|
||||
|
||||
/*
|
||||
================
|
||||
|
|
|
@ -26,6 +26,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#ifndef __DEBUGGRAPH_H__
|
||||
#define __DEBUGGRAPH_H__
|
||||
|
||||
#include "idlib/containers/List.h"
|
||||
#include "idlib/math/Vector.h"
|
||||
|
||||
class idDebugGraph {
|
||||
public:
|
||||
idDebugGraph();
|
||||
|
@ -37,3 +43,5 @@ private:
|
|||
idList<float> samples;
|
||||
int index;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -25,6 +25,14 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "sys/platform.h"
|
||||
#include "script/Script_Program.h"
|
||||
#include "Entity.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "Event.h"
|
||||
|
||||
/*
|
||||
sys_event.cpp
|
||||
|
||||
|
@ -32,11 +40,6 @@ Event are used for scheduling tasks and for linking script commands.
|
|||
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "../Game_local.h"
|
||||
|
||||
#define MAX_EVENTSPERFRAME 4096
|
||||
//#define CREATE_EVENT_CODE
|
||||
|
||||
|
|
|
@ -25,14 +25,15 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
===========================================================================
|
||||
*/
|
||||
/*
|
||||
sys_event.h
|
||||
|
||||
Event are used for scheduling tasks and for linking script commands.
|
||||
*/
|
||||
#ifndef __SYS_EVENT_H__
|
||||
#define __SYS_EVENT_H__
|
||||
|
||||
#include "idlib/containers/LinkList.h"
|
||||
#include "cm/CollisionModel.h"
|
||||
|
||||
// Event are used for scheduling tasks and for linking script commands.
|
||||
|
||||
#define D_EVENT_MAXARGS 8 // if changed, enable the CREATE_EVENT_CODE define in Event.cpp to generate switch statement for idClass::ProcessEventArgPtr.
|
||||
// running the game will then generate c:\doom\base\events.txt, the contents of which should be copied into the switch statement.
|
||||
|
||||
|
|
|
@ -26,12 +26,16 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "framework/BuildVersion.h"
|
||||
#include "framework/DeclSkin.h"
|
||||
#include "renderer/ModelManager.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "physics/Clip.h"
|
||||
#include "Entity.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "TypeInfo.h"
|
||||
#include "SaveGame.h"
|
||||
|
||||
/*
|
||||
Save game related helper classes.
|
||||
|
|
|
@ -29,6 +29,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __SAVEGAME_H__
|
||||
#define __SAVEGAME_H__
|
||||
|
||||
#include "framework/DeclFX.h"
|
||||
#include "framework/Game.h"
|
||||
#include "renderer/Model.h"
|
||||
#include "renderer/RenderSystem.h"
|
||||
|
||||
#include "gamesys/Class.h"
|
||||
|
||||
/*
|
||||
|
||||
Save game related helper classes.
|
||||
|
|
|
@ -26,12 +26,23 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/LangDict.h"
|
||||
#include "framework/async/NetworkSystem.h"
|
||||
#include "framework/FileSystem.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "gamesys/TypeInfo.h"
|
||||
#include "gamesys/SysCvar.h"
|
||||
#include "script/Script_Thread.h"
|
||||
#include "ai/AI.h"
|
||||
#include "anim/Anim_Testmodel.h"
|
||||
#include "Entity.h"
|
||||
#include "Moveable.h"
|
||||
#include "WorldSpawn.h"
|
||||
#include "Fx.h"
|
||||
#include "Misc.h"
|
||||
|
||||
#include "TypeInfo.h"
|
||||
#include "SysCmds.h"
|
||||
|
||||
/*
|
||||
==================
|
||||
|
|
|
@ -26,10 +26,14 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "framework/Licensee.h"
|
||||
#include "framework/BuildVersion.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "GameBase.h"
|
||||
#include "MultiplayerGame.h"
|
||||
|
||||
#include "SysCvar.h"
|
||||
|
||||
#if defined( _DEBUG )
|
||||
#define BUILD_DEBUG "-debug"
|
||||
|
|
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __SYS_CVAR_H__
|
||||
#define __SYS_CVAR_H__
|
||||
|
||||
#include "framework/CVarSystem.h"
|
||||
|
||||
extern idCVar developer;
|
||||
|
||||
extern idCVar g_cinematic;
|
||||
|
|
|
@ -30,10 +30,17 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#define private public
|
||||
#define protected public
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "idlib/containers/LinkList.h"
|
||||
#include "idlib/containers/StaticList.h"
|
||||
#include "idlib/math/Quat.h"
|
||||
#include "idlib/math/Interpolate.h"
|
||||
#include "idlib/bv/Bounds.h"
|
||||
#include "idlib/Lexer.h"
|
||||
#include "framework/Common.h"
|
||||
#include "framework/FileSystem.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "Entity.h"
|
||||
|
||||
#ifdef ID_DEBUG_MEMORY
|
||||
#include "GameTypeInfo.h" // Make sure this is up to date!
|
||||
|
@ -41,6 +48,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#include "NoGameTypeInfo.h"
|
||||
#endif
|
||||
|
||||
#include "TypeInfo.h"
|
||||
|
||||
// disabled because it's adds about 64MB to state dumps and takes a really long time
|
||||
//#define DUMP_GAMELOCAL
|
||||
|
||||
|
|
|
@ -29,6 +29,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __SYS_TYPEINFO_H__
|
||||
#define __SYS_TYPEINFO_H__
|
||||
|
||||
#include "idlib/CmdArgs.h"
|
||||
|
||||
class idFile;
|
||||
|
||||
/*
|
||||
===================================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "gamesys/SaveGame.h"
|
||||
#include "Entity.h"
|
||||
#include "Game_local.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "physics/Clip.h"
|
||||
|
||||
#define MAX_SECTOR_DEPTH 12
|
||||
#define MAX_SECTORS ((1<<(MAX_SECTOR_DEPTH+1))-1)
|
||||
|
|
|
@ -29,6 +29,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __CLIP_H__
|
||||
#define __CLIP_H__
|
||||
|
||||
#include "idlib/geometry/TraceModel.h"
|
||||
#include "cm/CollisionModel.h"
|
||||
|
||||
class idSaveGame;
|
||||
class idRestoreGame;
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
@ -41,7 +47,6 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#define JOINT_HANDLE_TO_CLIPMODEL_ID( id ) ( -1 - id )
|
||||
|
||||
class idClip;
|
||||
class idClipModel;
|
||||
class idEntity;
|
||||
|
||||
|
||||
|
|
|
@ -26,10 +26,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "physics/Force.h"
|
||||
|
||||
CLASS_DECLARATION( idClass, idForce )
|
||||
END_CLASS
|
||||
|
|
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __FORCE_H__
|
||||
#define __FORCE_H__
|
||||
|
||||
#include "gamesys/Class.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,11 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "physics/Physics.h"
|
||||
#include "gamesys/SaveGame.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "physics/Force_Constant.h"
|
||||
|
||||
CLASS_DECLARATION( idForce, idForce_Constant )
|
||||
END_CLASS
|
||||
|
|
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __FORCE_CONSTANT_H__
|
||||
#define __FORCE_CONSTANT_H__
|
||||
|
||||
#include "physics/Force.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "framework/UsercmdGen.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "physics/Physics.h"
|
||||
|
||||
#include "physics/Force_Drag.h"
|
||||
|
||||
CLASS_DECLARATION( idForce, idForce_Drag )
|
||||
END_CLASS
|
||||
|
|
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __FORCE_DRAG_H__
|
||||
#define __FORCE_DRAG_H__
|
||||
|
||||
#include "physics/Force.h"
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
||||
|
|
|
@ -26,10 +26,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../../idlib/precompiled.h"
|
||||
#pragma hdrstop
|
||||
#include "sys/platform.h"
|
||||
#include "physics/Physics_Player.h"
|
||||
#include "physics/Physics_Monster.h"
|
||||
#include "WorldSpawn.h"
|
||||
|
||||
#include "../Game_local.h"
|
||||
#include "physics/Force_Field.h"
|
||||
|
||||
CLASS_DECLARATION( idForce, idForce_Field )
|
||||
END_CLASS
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue