mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Fix includes in source/simulation2
Make include-what-you-use happy with some files in source/simulation2 and fix what needs to be fixed. Ref: #8086 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/components/ICmpAIInterface.h"
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/LocalTurnManager.h"
|
||||
|
||||
#include <queue>
|
||||
|
||||
@@ -21,35 +21,53 @@
|
||||
|
||||
#include "graphics/MapReader.h"
|
||||
#include "graphics/Terrain.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/file/file_system.h"
|
||||
#include "lib/file/vfs/vfs_util.h"
|
||||
#include "lib/os_path.h"
|
||||
#include "lib/path.h"
|
||||
#include "lib/sysdep/filesystem.h"
|
||||
#include "lib/timer.h"
|
||||
#include "lib/types.h"
|
||||
#include "lib/utf8.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/MathUtil.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/CStr.h"
|
||||
#include "ps/ConfigDB.h"
|
||||
#include "ps/Errors.h"
|
||||
#include "ps/Filesystem.h"
|
||||
#include "ps/Loader.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "ps/Profiler2.h"
|
||||
#include "ps/Pyrogenesis.h"
|
||||
#include "ps/Util.h"
|
||||
#include "ps/XML/Xeromyces.h"
|
||||
#include "scriptinterface/FunctionWrapper.h"
|
||||
#include "scriptinterface/JSON.h"
|
||||
#include "scriptinterface/Object.h"
|
||||
#include "scriptinterface/ScriptContext.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
#include "scriptinterface/ScriptRequest.h"
|
||||
#include "scriptinterface/StructuredClone.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/system/ComponentManager.h"
|
||||
#include "simulation2/system/ParamNode.h"
|
||||
#include "simulation2/system/SimContext.h"
|
||||
#include "simulation2/components/ICmpAIManager.h"
|
||||
#include "simulation2/components/ICmpCommandQueue.h"
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/components/ICmpPathfinder.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/helpers/SimulationCommand.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
#include <js/CallArgs.h>
|
||||
#include <js/PropertyAndElement.h>
|
||||
#include <js/RootingAPI.h>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
|
||||
class CSimulation2Impl
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -18,15 +18,18 @@
|
||||
#ifndef INCLUDED_SIMULATION2
|
||||
#define INCLUDED_SIMULATION2
|
||||
|
||||
#include "lib/code_annotation.h"
|
||||
#include "lib/file/vfs/vfs_path.h"
|
||||
#include "simulation2/helpers/SimulationCommand.h"
|
||||
#include "simulation2/system/CmpPtr.h"
|
||||
#include "simulation2/system/Components.h"
|
||||
#include "lib/status.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
|
||||
#include <js/TypeDecls.h>
|
||||
#include <js/Value.h>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class CFrustum;
|
||||
@@ -37,8 +40,9 @@ class CTerrain;
|
||||
class CUnitManager;
|
||||
class IComponent;
|
||||
class SceneCollector;
|
||||
class ScriptInterface;
|
||||
class ScriptContext;
|
||||
class ScriptInterface;
|
||||
struct SimulationCommand;
|
||||
|
||||
/**
|
||||
* Public API for simulation system.
|
||||
|
||||
@@ -17,40 +17,73 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpAIManager.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
|
||||
#include "graphics/Terrain.h"
|
||||
#include "lib/timer.h"
|
||||
#include "lib/tex/tex.h"
|
||||
#include "graphics/HeightMipmap.h"
|
||||
#include "lib/alignment.h"
|
||||
#include "lib/allocators/shared_ptr.h"
|
||||
#include "lib/code_annotation.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/file/vfs/vfs_path.h"
|
||||
#include "lib/file/vfs/vfs_util.h"
|
||||
#include "lib/os_path.h"
|
||||
#include "lib/path.h"
|
||||
#include "lib/tex/tex.h"
|
||||
#include "lib/types.h"
|
||||
#include "lib/utf8.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/Filesystem.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "ps/scripting/JSInterface_VFS.h"
|
||||
#include "ps/Profiler2.h"
|
||||
#include "ps/TemplateLoader.h"
|
||||
#include "ps/Util.h"
|
||||
#include "ps/scripting/JSInterface_VFS.h"
|
||||
#include "scriptinterface/FunctionWrapper.h"
|
||||
#include "scriptinterface/JSON.h"
|
||||
#include "scriptinterface/Object.h"
|
||||
#include "scriptinterface/ScriptContext.h"
|
||||
#include "scriptinterface/ScriptConversions.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
#include "scriptinterface/ScriptRequest.h"
|
||||
#include "scriptinterface/StructuredClone.h"
|
||||
#include "simulation2/components/ICmpAIInterface.h"
|
||||
#include "simulation2/components/ICmpCommandQueue.h"
|
||||
#include "simulation2/components/ICmpObstructionManager.h"
|
||||
#include "simulation2/components/ICmpPathfinder.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/components/ICmpTerritoryManager.h"
|
||||
#include "simulation2/helpers/Grid.h"
|
||||
#include "simulation2/helpers/HierarchicalPathfinder.h"
|
||||
#include "simulation2/helpers/LongPathfinder.h"
|
||||
#include "simulation2/helpers/PathGoal.h"
|
||||
#include "simulation2/helpers/Pathfinding.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/serialization/DebugSerializer.h"
|
||||
#include "simulation2/serialization/SerializeTemplates.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
#include "simulation2/serialization/StdDeserializer.h"
|
||||
#include "simulation2/serialization/StdSerializer.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
#include <boost/random/linear_congruential.hpp>
|
||||
#include <cstring>
|
||||
#include <js/Array.h>
|
||||
#include <js/GCAPI.h>
|
||||
#include <js/GCVector.h>
|
||||
#include <js/PropertyAndElement.h>
|
||||
#include <js/RootingAPI.h>
|
||||
#include <js/TracingAPI.h>
|
||||
#include <js/TypeDecls.h>
|
||||
#include <js/Value.h>
|
||||
#include <js/experimental/TypedData.h>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
extern void QuitEngine();
|
||||
|
||||
|
||||
@@ -17,17 +17,31 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpCinemaManager.h"
|
||||
|
||||
#include "lib/debug.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "maths/NUSpline.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/CStr.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpOverlayRenderer.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/components/ICmpSelectable.h"
|
||||
#include "simulation2/components/ICmpTerritoryManager.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/helpers/CinemaPath.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class CCmpCinemaManager final : public ICmpCinemaManager
|
||||
{
|
||||
|
||||
@@ -17,16 +17,29 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpCommandQueue.h"
|
||||
|
||||
#include "lib/types.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/Game.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "ps/Profiler2.h"
|
||||
#include "scriptinterface/FunctionWrapper.h"
|
||||
#include "scriptinterface/JSON.h"
|
||||
#include "scriptinterface/ScriptRequest.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/helpers/SimulationCommand.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/TurnManager.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <js/RootingAPI.h>
|
||||
#include <js/TypeDecls.h>
|
||||
#include <js/Value.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class ScriptInterface;
|
||||
|
||||
class CCmpCommandQueue final : public ICmpCommandQueue
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -17,16 +17,26 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpDecay.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
|
||||
#include "ICmpPosition.h"
|
||||
#include "ICmpTerrain.h"
|
||||
#include "ICmpVisual.h"
|
||||
|
||||
#include "lib/debug.h"
|
||||
#include "maths/BoundingBoxAligned.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/components/ICmpVisual.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
* Fairly basic decay implementation, for units and buildings etc.
|
||||
|
||||
@@ -17,9 +17,12 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpFootprint.h"
|
||||
|
||||
#include "lib/types.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "simulation2/components/ICmpObstruction.h"
|
||||
#include "simulation2/components/ICmpObstructionManager.h"
|
||||
@@ -28,8 +31,15 @@
|
||||
#include "simulation2/components/ICmpRallyPoint.h"
|
||||
#include "simulation2/components/ICmpUnitMotion.h"
|
||||
#include "simulation2/helpers/Geometry.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "simulation2/helpers/Pathfinding.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class CCmpFootprint final : public ICmpFootprint
|
||||
{
|
||||
|
||||
@@ -17,15 +17,20 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpMinimap.h"
|
||||
|
||||
#include "simulation2/components/ICmpPlayerManager.h"
|
||||
#include "simulation2/components/ICmpPlayer.h"
|
||||
#include "simulation2/components/ICmpOwnership.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
|
||||
#include "graphics/Color.h"
|
||||
#include "lib/types.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpOwnership.h"
|
||||
#include "simulation2/components/ICmpPlayer.h"
|
||||
#include "simulation2/components/ICmpPlayerManager.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class CCmpMinimap final : public ICmpMinimap
|
||||
{
|
||||
|
||||
@@ -17,13 +17,20 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpMotion.h"
|
||||
|
||||
#include "ICmpPosition.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
|
||||
#include "graphics/Terrain.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
|
||||
class CCmpMotionBall final : public ICmpMotion
|
||||
{
|
||||
|
||||
@@ -17,17 +17,36 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpObstruction.h"
|
||||
|
||||
#include "lib/debug.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpObstructionManager.h"
|
||||
#include "simulation2/components/ICmpPathfinder.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/components/ICmpUnitMotion.h"
|
||||
#include "simulation2/components/ICmpWaterManager.h"
|
||||
#include "simulation2/helpers/Pathfinding.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/serialization/SerializeTemplates.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include "ps/CLogger.h"
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
template<>
|
||||
struct SerializeHelper<ICmpObstructionManager::tag_t>
|
||||
|
||||
@@ -17,25 +17,43 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpObstructionManager.h"
|
||||
|
||||
#include "ICmpPosition.h"
|
||||
#include "ICmpRangeManager.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/helpers/Geometry.h"
|
||||
#include "simulation2/helpers/Grid.h"
|
||||
#include "simulation2/helpers/Rasterize.h"
|
||||
#include "simulation2/helpers/Render.h"
|
||||
#include "simulation2/helpers/Spatial.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
|
||||
#include "graphics/Color.h"
|
||||
#include "graphics/Overlay.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/types.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/MathUtil.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "renderer/Scene.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpObstruction.h"
|
||||
#include "simulation2/components/ICmpPathfinder.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/helpers/Geometry.h"
|
||||
#include "simulation2/helpers/Grid.h"
|
||||
#include "simulation2/helpers/Pathfinding.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/helpers/Rasterize.h"
|
||||
#include "simulation2/helpers/Render.h"
|
||||
#include "simulation2/helpers/Spatial.h"
|
||||
#include "simulation2/serialization/SerializeTemplates.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstddef>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
// Externally, tags are opaque non-zero positive integers.
|
||||
// Internally, they are tagged (by shape) indexes into shape lists.
|
||||
|
||||
@@ -19,17 +19,28 @@
|
||||
|
||||
#include "ICmpOverlayRenderer.h"
|
||||
|
||||
#include "graphics/Color.h"
|
||||
#include "graphics/HeightMipmap.h"
|
||||
#include "graphics/Overlay.h"
|
||||
#include "graphics/TextureManager.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/Matrix3D.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/CStr.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "renderer/Renderer.h"
|
||||
#include "renderer/Scene.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class CCmpOverlayRenderer final : public ICmpOverlayRenderer
|
||||
{
|
||||
|
||||
@@ -17,10 +17,14 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpOwnership.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
* Basic ICmpOwnership implementation.
|
||||
|
||||
@@ -17,13 +17,16 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpParticleManager.h"
|
||||
|
||||
#include "graphics/ParticleManager.h"
|
||||
#include "renderer/Renderer.h"
|
||||
#include "renderer/SceneRenderer.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class CCmpParticleManager final : public ICmpParticleManager
|
||||
{
|
||||
|
||||
@@ -24,27 +24,55 @@
|
||||
|
||||
#include "CCmpPathfinder_Common.h"
|
||||
|
||||
#include "graphics/Terrain.h"
|
||||
#include "lib/code_generation.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/path.h"
|
||||
#include "lib/types.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/MathUtil.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/Filesystem.h"
|
||||
#include "ps/Future.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "ps/Profiler2.h"
|
||||
#include "ps/TaskManager.h"
|
||||
#include "ps/XML/Xeromyces.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpObstruction.h"
|
||||
#include "simulation2/components/ICmpObstructionManager.h"
|
||||
#include "simulation2/components/ICmpPathfinder.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/components/ICmpWaterManager.h"
|
||||
#include "simulation2/helpers/Grid.h"
|
||||
#include "simulation2/helpers/HierarchicalPathfinder.h"
|
||||
#include "simulation2/helpers/LongPathfinder.h"
|
||||
#include "simulation2/helpers/MapEdgeTiles.h"
|
||||
#include "simulation2/helpers/PathGoal.h"
|
||||
#include "simulation2/helpers/Pathfinding.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/helpers/Rasterize.h"
|
||||
#include "simulation2/helpers/VertexPathfinder.h"
|
||||
#include "simulation2/serialization/SerializeTemplates.h"
|
||||
#include "simulation2/serialization/SerializedPathfinder.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/CStr.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "ps/XML/Xeromyces.h"
|
||||
#include "renderer/Scene.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
#include <cstring>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class SceneCollector;
|
||||
|
||||
REGISTER_COMPONENT_TYPE(Pathfinder)
|
||||
|
||||
|
||||
@@ -17,24 +17,35 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpPosition.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
|
||||
#include "ICmpTerrain.h"
|
||||
#include "ICmpVisual.h"
|
||||
#include "ICmpWaterManager.h"
|
||||
|
||||
#include "graphics/Terrain.h"
|
||||
#include "lib/rand.h"
|
||||
#include "maths/BoundingBoxOriented.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "maths/MathUtil.h"
|
||||
#include "maths/Matrix3D.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "maths/Vector2D.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/CStr.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/components/ICmpVisual.h"
|
||||
#include "simulation2/components/ICmpWaterManager.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/serialization/SerializeTemplates.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
/**
|
||||
* Basic ICmpPosition implementation.
|
||||
|
||||
@@ -17,26 +17,34 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpProjectileManager.h"
|
||||
|
||||
#include "ICmpObstruction.h"
|
||||
#include "ICmpObstructionManager.h"
|
||||
#include "ICmpPosition.h"
|
||||
#include "ICmpRangeManager.h"
|
||||
#include "ICmpTerrain.h"
|
||||
#include "simulation2/helpers/Los.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
|
||||
#include "graphics/Model.h"
|
||||
#include "graphics/ModelAbstract.h"
|
||||
#include "graphics/Unit.h"
|
||||
#include "graphics/UnitManager.h"
|
||||
#include "lib/posix/posix_types.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "maths/Frustum.h"
|
||||
#include "maths/Matrix3D.h"
|
||||
#include "maths/Quaternion.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/CStr.h"
|
||||
#include "renderer/Scene.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/helpers/Los.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
// Time (in seconds) before projectiles that stuck in the ground are destroyed
|
||||
const static float PROJECTILE_DECAY_TIME = 30.f;
|
||||
|
||||
@@ -19,13 +19,37 @@
|
||||
|
||||
#include "CCmpRallyPointRenderer.h"
|
||||
|
||||
#include "graphics/TextureManager.h"
|
||||
#include "lib/debug.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "ps/algorithm.h"
|
||||
#include "renderer/Renderer.h"
|
||||
#include "renderer/Scene.h"
|
||||
#include "renderer/backend/Sampler.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpIdentity.h"
|
||||
#include "simulation2/components/ICmpObstructionManager.h"
|
||||
#include "simulation2/components/ICmpOwnership.h"
|
||||
#include "simulation2/components/ICmpPlayer.h"
|
||||
#include "simulation2/components/ICmpPlayerManager.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/components/ICmpWaterManager.h"
|
||||
#include "simulation2/helpers/Geometry.h"
|
||||
#include "simulation2/helpers/Los.h"
|
||||
#include "simulation2/helpers/PathGoal.h"
|
||||
#include "simulation2/helpers/Pathfinding.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/helpers/Render.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
class CFrustum;
|
||||
|
||||
std::string CCmpRallyPointRenderer::GetSchema()
|
||||
{
|
||||
|
||||
@@ -17,32 +17,61 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpRangeManager.h"
|
||||
|
||||
#include "ICmpTerrain.h"
|
||||
#include "simulation2/system/EntityMap.h"
|
||||
#include "graphics/Color.h"
|
||||
#include "graphics/Overlay.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/posix/posix_types.h"
|
||||
#include "lib/types.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "maths/MathUtil.h"
|
||||
#include "maths/Sqrt.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "renderer/Scene.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpFogging.h"
|
||||
#include "simulation2/components/ICmpMirage.h"
|
||||
#include "simulation2/components/ICmpObstruction.h"
|
||||
#include "simulation2/components/ICmpOwnership.h"
|
||||
#include "simulation2/components/ICmpPathfinder.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpObstructionManager.h"
|
||||
#include "simulation2/components/ICmpTerritoryManager.h"
|
||||
#include "simulation2/components/ICmpVisibility.h"
|
||||
#include "simulation2/components/ICmpVision.h"
|
||||
#include "simulation2/components/ICmpWaterManager.h"
|
||||
#include "simulation2/helpers/Grid.h"
|
||||
#include "simulation2/helpers/Los.h"
|
||||
#include "simulation2/helpers/MapEdgeTiles.h"
|
||||
#include "simulation2/helpers/Pathfinding.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/helpers/Render.h"
|
||||
#include "simulation2/helpers/Spatial.h"
|
||||
#include "simulation2/serialization/SerializeTemplates.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/EntityMap.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include "graphics/Overlay.h"
|
||||
#include "lib/timer.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "renderer/Scene.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
#include <map>
|
||||
#include <new>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#define DEBUG_RANGE_MANAGER_BOUNDS 0
|
||||
|
||||
|
||||
@@ -19,8 +19,10 @@
|
||||
|
||||
#include "ICmpRangeOverlayRenderer.h"
|
||||
|
||||
#include "graphics/Color.h"
|
||||
#include "graphics/Overlay.h"
|
||||
#include "graphics/TextureManager.h"
|
||||
#include "maths/Vector2D.h"
|
||||
#include "ps/CStrIntern.h"
|
||||
#include "renderer/Renderer.h"
|
||||
#include "renderer/Scene.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
@@ -28,10 +30,16 @@
|
||||
#include "simulation2/components/ICmpPlayer.h"
|
||||
#include "simulation2/components/ICmpPlayerManager.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/helpers/Render.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class CFrustum;
|
||||
|
||||
class CCmpRangeOverlayRenderer final : public ICmpRangeOverlayRenderer
|
||||
{
|
||||
|
||||
@@ -19,16 +19,19 @@
|
||||
|
||||
#include "ICmpSelectable.h"
|
||||
|
||||
#include "graphics/Color.h"
|
||||
#include "graphics/Overlay.h"
|
||||
#include "graphics/Terrain.h"
|
||||
#include "graphics/TextureManager.h"
|
||||
#include "lib/code_generation.h"
|
||||
#include "lib/debug.h"
|
||||
#include "maths/BoundingBoxAligned.h"
|
||||
#include "maths/Ease.h"
|
||||
#include "maths/Frustum.h"
|
||||
#include "maths/MathUtil.h"
|
||||
#include "maths/Matrix3D.h"
|
||||
#include "maths/Vector2D.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/CStrIntern.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "renderer/Renderer.h"
|
||||
#include "renderer/Scene.h"
|
||||
@@ -42,8 +45,17 @@
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/components/ICmpVisual.h"
|
||||
#include "simulation2/components/ICmpWaterManager.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/helpers/Render.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// Minimum alpha value for always visible overlays [0 fully transparent, 1 fully opaque]
|
||||
static const float MIN_ALPHA_ALWAYS_VISIBLE = 0.65f;
|
||||
|
||||
@@ -17,16 +17,20 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpSoundManager.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "lib/path.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "simulation2/components/ICmpOwnership.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/components/ICmpOwnership.h"
|
||||
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "soundmanager/ISoundManager.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class CCmpSoundManager final : public ICmpSoundManager
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -17,16 +17,24 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpTemplateManager.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
|
||||
#include "lib/utf8.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/TemplateLoader.h"
|
||||
#include "ps/XML/RelaxNG.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/serialization/SerializeTemplates.h"
|
||||
#include "simulation2/serialization/SerializedTypes.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class CCmpTemplateManager final : public ICmpTemplateManager
|
||||
{
|
||||
|
||||
@@ -17,17 +17,25 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpTerrain.h"
|
||||
|
||||
#include "graphics/Terrain.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/posix/posix_types.h"
|
||||
#include "lib/types.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "renderer/Renderer.h"
|
||||
#include "renderer/SceneRenderer.h"
|
||||
#include "renderer/WaterManager.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpObstructionManager.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class CCmpTerrain final : public ICmpTerrain
|
||||
{
|
||||
|
||||
@@ -17,12 +17,13 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpTerritoryInfluence.h"
|
||||
|
||||
#include "simulation2/components/ICmpOwnership.h"
|
||||
#include "simulation2/components/ICmpPlayerManager.h"
|
||||
#include "lib/types.h"
|
||||
#include "simulation2/components/ICmpValueModificationManager.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class CCmpTerritoryInfluence final : public ICmpTerritoryInfluence
|
||||
{
|
||||
|
||||
@@ -17,14 +17,24 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpTerritoryManager.h"
|
||||
|
||||
#include "graphics/Color.h"
|
||||
#include "graphics/Overlay.h"
|
||||
#include "graphics/Terrain.h"
|
||||
#include "graphics/TextureManager.h"
|
||||
#include "graphics/SColor.h"
|
||||
#include "graphics/TerritoryBoundary.h"
|
||||
#include "graphics/Texture.h"
|
||||
#include "graphics/TextureManager.h"
|
||||
#include "lib/code_annotation.h"
|
||||
#include "lib/code_generation.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/path.h"
|
||||
#include "lib/types.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/MathUtil.h"
|
||||
#include "maths/Vector2D.h"
|
||||
#include "ps/Filesystem.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "ps/XML/Xeromyces.h"
|
||||
#include "renderer/Renderer.h"
|
||||
@@ -40,11 +50,26 @@
|
||||
#include "simulation2/components/ICmpTerritoryDecayManager.h"
|
||||
#include "simulation2/components/ICmpTerritoryInfluence.h"
|
||||
#include "simulation2/helpers/Grid.h"
|
||||
#include "simulation2/helpers/Pathfinding.h"
|
||||
#include "simulation2/helpers/Player.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/helpers/Render.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <cstddef>
|
||||
#include <map>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class CCmpTerritoryManager;
|
||||
class CFrustum;
|
||||
|
||||
class TerritoryOverlay final : public TerrainTextureOverlay
|
||||
{
|
||||
|
||||
@@ -17,11 +17,15 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpTest.h"
|
||||
|
||||
#include "simulation2/scripting/ScriptComponent.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/scripting/ScriptComponent.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
class CCmpTest1A : public ICmpTest1
|
||||
{
|
||||
|
||||
@@ -18,15 +18,38 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "CCmpUnitMotion.h"
|
||||
#include "CCmpUnitMotionManager.h"
|
||||
|
||||
#include "lib/debug.h"
|
||||
#include "lib/path.h"
|
||||
#include "lib/types.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "maths/MathUtil.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "ps/Profiler2.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/CCmpUnitMotionManager.h"
|
||||
#include "simulation2/components/ICmpObstructionManager.h"
|
||||
#include "simulation2/components/ICmpPathfinder.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/components/ICmpUnitMotion.h"
|
||||
#include "simulation2/helpers/Grid.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/EntityMap.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <limits>
|
||||
#include <new>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#define DEBUG_STATS 0
|
||||
|
||||
@@ -17,31 +17,38 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpUnitRenderer.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
|
||||
#include "ICmpPosition.h"
|
||||
#include "ICmpRangeManager.h"
|
||||
#include "ICmpSelectable.h"
|
||||
#include "ICmpVisibility.h"
|
||||
#include "ICmpVisual.h"
|
||||
|
||||
#include "graphics/Color.h"
|
||||
#include "graphics/ModelAbstract.h"
|
||||
#include "graphics/ObjectEntry.h"
|
||||
#include "graphics/Overlay.h"
|
||||
#include "graphics/Unit.h"
|
||||
#include "lib/debug.h"
|
||||
#include "maths/BoundingBoxAligned.h"
|
||||
#include "maths/BoundingBoxOriented.h"
|
||||
#include "maths/BoundingSphere.h"
|
||||
#include "maths/Frustum.h"
|
||||
#include "maths/Matrix3D.h"
|
||||
#include "ps/GameSetup/Config.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "renderer/RenderingOptions.h"
|
||||
#include "renderer/Scene.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/components/ICmpSelectable.h"
|
||||
#include "simulation2/components/ICmpVisibility.h"
|
||||
#include "simulation2/components/ICmpVisual.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
#include "tools/atlas/GameInterface/GameLoop.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
/**
|
||||
* Efficiently(ish) renders all the units in the world.
|
||||
*
|
||||
|
||||
@@ -17,13 +17,15 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpVision.h"
|
||||
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/components/ICmpPlayerManager.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/components/ICmpValueModificationManager.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class CCmpVision final : public ICmpVision
|
||||
{
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ICmpWaterManager.h"
|
||||
|
||||
#include "graphics/RenderableObject.h"
|
||||
@@ -26,7 +25,11 @@
|
||||
#include "renderer/SceneRenderer.h"
|
||||
#include "renderer/WaterManager.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "tools/atlas/GameInterface/GameLoop.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Message.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class CCmpWaterManager final : public ICmpWaterManager
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -19,19 +19,27 @@
|
||||
|
||||
#include "Render.h"
|
||||
|
||||
#include "graphics/Color.h"
|
||||
#include "graphics/Overlay.h"
|
||||
#include "graphics/Terrain.h"
|
||||
#include "lib/debug.h"
|
||||
#include "maths/BoundingBoxAligned.h"
|
||||
#include "maths/BoundingBoxOriented.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "maths/MathUtil.h"
|
||||
#include "maths/Matrix3D.h"
|
||||
#include "maths/Quaternion.h"
|
||||
#include "maths/Vector2D.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "ps/Profile.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/components/ICmpWaterManager.h"
|
||||
#include "simulation2/helpers/Geometry.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <utility>
|
||||
|
||||
void SimRender::ConstructLineOnGround(const CSimContext& context, const std::vector<float>& xz,
|
||||
SOverlayLine& overlay, bool floating, float heightOffset)
|
||||
|
||||
@@ -20,19 +20,24 @@
|
||||
#include "Selection.h"
|
||||
|
||||
#include "graphics/Camera.h"
|
||||
#include "lib/debug.h"
|
||||
#include "maths/Frustum.h"
|
||||
#include "maths/Vector2D.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "ps/Profiler2.h"
|
||||
#include "simulation2/components/ICmpIdentity.h"
|
||||
#include "simulation2/components/ICmpOwnership.h"
|
||||
#include "simulation2/components/ICmpRangeManager.h"
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/components/ICmpSelectable.h"
|
||||
#include "simulation2/components/ICmpVisual.h"
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/components/ICmpUnitRenderer.h"
|
||||
#include "simulation2/system/ComponentManager.h"
|
||||
#include "simulation2/components/ICmpVisual.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <string_view>
|
||||
#include <unordered_map>
|
||||
|
||||
entity_id_t EntitySelection::PickEntityAtPoint(CSimulation2& simulation, const CCamera& camera, int screenX, int screenY, player_id_t player, bool allowEditorSelectables)
|
||||
{
|
||||
|
||||
@@ -20,13 +20,21 @@
|
||||
#include "JSInterface_Simulation.h"
|
||||
|
||||
#include "graphics/GameView.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/os_path.h"
|
||||
#include "lib/path.h"
|
||||
#include "maths/Fixed.h"
|
||||
#include "maths/FixedVector2D.h"
|
||||
#include "maths/FixedVector3D.h"
|
||||
#include "ps/ConfigDB.h"
|
||||
#include "ps/Game.h"
|
||||
#include "ps/GameSetup/Config.h"
|
||||
#include "ps/Pyrogenesis.h"
|
||||
#include "scriptinterface/FunctionWrapper.h"
|
||||
#include "scriptinterface/Object.h"
|
||||
#include "scriptinterface/ScriptRequest.h"
|
||||
#include "scriptinterface/StructuredClone.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/components/ICmpAIManager.h"
|
||||
#include "simulation2/components/ICmpCommandQueue.h"
|
||||
#include "simulation2/components/ICmpGuiInterface.h"
|
||||
@@ -34,12 +42,23 @@
|
||||
#include "simulation2/components/ICmpPosition.h"
|
||||
#include "simulation2/components/ICmpSelectable.h"
|
||||
#include "simulation2/helpers/Geometry.h"
|
||||
#include "simulation2/helpers/Position.h"
|
||||
#include "simulation2/helpers/Selection.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cstddef>
|
||||
#include <fstream>
|
||||
#include <js/PropertyAndElement.h>
|
||||
#include <js/RootingAPI.h>
|
||||
#include <js/TypeDecls.h>
|
||||
#include <js/Value.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class ScriptInterface;
|
||||
|
||||
namespace JSI_Simulation
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -19,21 +19,32 @@
|
||||
|
||||
#include "simulation2/system/ComponentManager.h"
|
||||
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/components/ICmpTest.h"
|
||||
#include "simulation2/MessageTypes.h"
|
||||
#include "simulation2/system/ParamNode.h"
|
||||
#include "simulation2/system/SimContext.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
|
||||
#include "graphics/Terrain.h"
|
||||
#include "ps/Filesystem.h"
|
||||
#include "lib/file/file_system.h"
|
||||
#include "lib/file/vfs/vfs.h"
|
||||
#include "lib/path.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/Filesystem.h"
|
||||
#include "ps/XML/Xeromyces.h"
|
||||
#include "scriptinterface/JSON.h"
|
||||
#include "scriptinterface/ScriptConversions.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
#include "scriptinterface/ScriptRequest.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/Entity.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <js/RootingAPI.h>
|
||||
#include <js/TypeDecls.h>
|
||||
#include <js/Value.h>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class TestCmpTemplateManager : public CxxTest::TestSuite
|
||||
{
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
#include "simulation2/components/ICmpVisual.h"
|
||||
#include "simulation2/components/ICmpWaterManager.h"
|
||||
#include "simulation2/helpers/Render.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
extern int g_xres, g_yres;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "maths/Vector3D.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/components/ICmpCinemaManager.h"
|
||||
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
namespace AtlasMessage
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2022 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "maths/MathUtil.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
#include "../Brushes.h"
|
||||
#include "../DeltaArray.h"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2022 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "renderer/WaterManager.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/components/ICmpWaterManager.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
namespace AtlasMessage {
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/components/ICmpVisual.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "simulation2/system/ParamNode.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/components/ICmpSoundManager.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
extern void (*Atlas_GLSwapBuffers)(void* context);
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/components/ICmpVisual.h"
|
||||
#include "simulation2/helpers/Selection.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "ps/XML/XMLWriter.h"
|
||||
|
||||
namespace AtlasMessage
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2022 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "ps/Game.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/components/ICmpTemplateManager.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
namespace AtlasMessage {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2023 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "simulation2/components/ICmpPathfinder.h"
|
||||
#include "simulation2/components/ICmpTerrain.h"
|
||||
#include "simulation2/helpers/Grid.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
|
||||
#include "../Brushes.h"
|
||||
#include "../DeltaArray.h"
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
#include "simulation2/components/ICmpParticleManager.h"
|
||||
#include "simulation2/components/ICmpPathfinder.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
#include "simulation2/system/Component.h"
|
||||
#include "soundmanager/ISoundManager.h"
|
||||
|
||||
extern void (*Atlas_GLSwapBuffers)(void* context);
|
||||
|
||||
Reference in New Issue
Block a user