Removed engine.h from includes in header files, replaced by forward declarations and includes in source files
parent
baa616050a
commit
3001927576
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
#include "common/system/system.h"
|
#include "common/system/system.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/opengl/glutil.h"
|
#include "graphics/opengl/glutil.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "graphics/engine/engine.h"
|
#include "graphics/core/color.h"
|
||||||
|
|
||||||
|
|
||||||
class CObject;
|
class CObject;
|
||||||
class CRobotMain;
|
class CRobotMain;
|
||||||
|
@ -37,6 +36,10 @@ struct Event;
|
||||||
namespace Gfx
|
namespace Gfx
|
||||||
{
|
{
|
||||||
|
|
||||||
|
class CEngine;
|
||||||
|
class CTerrain;
|
||||||
|
class CWater;
|
||||||
|
|
||||||
enum class TransparencyMode : unsigned char;
|
enum class TransparencyMode : unsigned char;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -148,7 +148,7 @@ struct EngineObject
|
||||||
* \struct EngineShadowType
|
* \struct EngineShadowType
|
||||||
* \brief Type of shadow drawn by the graphics engine
|
* \brief Type of shadow drawn by the graphics engine
|
||||||
*/
|
*/
|
||||||
enum class EngineShadowType
|
enum class EngineShadowType : unsigned char
|
||||||
{
|
{
|
||||||
//! Normal shadow
|
//! Normal shadow
|
||||||
NORMAL = 0,
|
NORMAL = 0,
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
|
|
||||||
#include "graphics/core/device.h"
|
#include "graphics/core/device.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "math/geometry.h"
|
#include "math/geometry.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include "graphics/core/light.h"
|
#include "graphics/core/light.h"
|
||||||
|
|
||||||
#include "graphics/engine/engine.h"
|
#include <vector>
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
|
@ -35,8 +35,13 @@
|
||||||
namespace Gfx
|
namespace Gfx
|
||||||
{
|
{
|
||||||
|
|
||||||
|
class CDevice;
|
||||||
|
class CEngine;
|
||||||
|
|
||||||
struct Color;
|
struct Color;
|
||||||
|
|
||||||
|
enum EngineObjectType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \struct LightProgression
|
* \struct LightProgression
|
||||||
* \brief Describes the progression of light parameters change
|
* \brief Describes the progression of light parameters change
|
||||||
|
@ -125,8 +130,8 @@ struct DynamicLight
|
||||||
, used(false)
|
, used(false)
|
||||||
, enabled(false)
|
, enabled(false)
|
||||||
, priority(LIGHT_PRI_LOW)
|
, priority(LIGHT_PRI_LOW)
|
||||||
, includeType(ENG_OBJTYPE_NULL)
|
, includeType{}
|
||||||
, excludeType(ENG_OBJTYPE_NULL)
|
, excludeType{}
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include "graphics/core/transparency.h"
|
#include "graphics/core/transparency.h"
|
||||||
|
|
||||||
#include "graphics/engine/camera.h"
|
#include "graphics/engine/camera.h"
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "graphics/core/color.h"
|
||||||
#include "graphics/engine/engine.h"
|
|
||||||
|
|
||||||
#include "object/interface/trace_drawing_object.h"
|
#include "object/interface/trace_drawing_object.h"
|
||||||
|
|
||||||
|
@ -42,7 +41,12 @@ class CSoundInterface;
|
||||||
namespace Gfx
|
namespace Gfx
|
||||||
{
|
{
|
||||||
|
|
||||||
|
class CDevice;
|
||||||
|
class CEngine;
|
||||||
class CParticleRenderer;
|
class CParticleRenderer;
|
||||||
|
class CTerrain;
|
||||||
|
class CWater;
|
||||||
|
|
||||||
struct EngineTriangle;
|
struct EngineTriangle;
|
||||||
|
|
||||||
const short MAXPARTICULE = 500;
|
const short MAXPARTICULE = 500;
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "math/geometry.h"
|
#include "math/geometry.h"
|
||||||
|
|
|
@ -50,6 +50,13 @@ class CLevelParserParam;
|
||||||
using CLevelParserParamUPtr = std::unique_ptr<CLevelParserParam>;
|
using CLevelParserParamUPtr = std::unique_ptr<CLevelParserParam>;
|
||||||
using CLevelParserParamVec = std::vector<CLevelParserParamUPtr>;
|
using CLevelParserParamVec = std::vector<CLevelParserParamUPtr>;
|
||||||
|
|
||||||
|
namespace Gfx
|
||||||
|
{
|
||||||
|
class CEngine;
|
||||||
|
|
||||||
|
enum EngineObjectType;
|
||||||
|
}
|
||||||
|
|
||||||
class CLevelParserParam
|
class CLevelParserParam
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -44,6 +44,8 @@
|
||||||
#include "object/tool_type.h"
|
#include "object/tool_type.h"
|
||||||
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
|
#include <map>
|
||||||
|
#include <set>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
@ -82,7 +84,7 @@ bool IsInSimulationConfigPhase(Phase phase);
|
||||||
bool IsPhaseWithWorld(Phase phase);
|
bool IsPhaseWithWorld(Phase phase);
|
||||||
bool IsMainMenuPhase(Phase phase);
|
bool IsMainMenuPhase(Phase phase);
|
||||||
|
|
||||||
|
class CApplication;
|
||||||
class CEventQueue;
|
class CEventQueue;
|
||||||
class CSoundInterface;
|
class CSoundInterface;
|
||||||
class CLevelParserLine;
|
class CLevelParserLine;
|
||||||
|
@ -104,6 +106,7 @@ class CLightManager;
|
||||||
class CWater;
|
class CWater;
|
||||||
class CCloud;
|
class CCloud;
|
||||||
class CLightning;
|
class CLightning;
|
||||||
|
class COldModelManager;
|
||||||
class CPlanet;
|
class CPlanet;
|
||||||
class CTerrain;
|
class CTerrain;
|
||||||
class CModelManager;
|
class CModelManager;
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
#include "common/event.h"
|
#include "common/event.h"
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include "object/auto/autobase.h"
|
#include "object/auto/autobase.h"
|
||||||
|
|
||||||
#include "graphics/engine/cloud.h"
|
#include "graphics/engine/cloud.h"
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/lightning.h"
|
#include "graphics/engine/lightning.h"
|
||||||
#include "graphics/engine/planet.h"
|
#include "graphics/engine/planet.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/pyro_manager.h"
|
#include "graphics/engine/pyro_manager.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/pyro_manager.h"
|
#include "graphics/engine/pyro_manager.h"
|
||||||
|
|
||||||
#include "level/parser/parser.h"
|
#include "level/parser/parser.h"
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "level/parser/parser.h"
|
#include "level/parser/parser.h"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "object/auto/autoflag.h"
|
#include "object/auto/autoflag.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
||||||
#include "math/geometry.h"
|
#include "math/geometry.h"
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
#include "object/auto/autohouston.h"
|
#include "object/auto/autohouston.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "math/geometry.h"
|
#include "math/geometry.h"
|
||||||
|
|
||||||
#include "object/old_object.h"
|
#include "object/old_object.h"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "object/auto/autokid.h"
|
#include "object/auto/autokid.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
#include "graphics/engine/water.h"
|
#include "graphics/engine/water.h"
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
#include "level/parser/parserparam.h"
|
#include "level/parser/parserparam.h"
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#include "object/auto/autoportico.h"
|
#include "object/auto/autoportico.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "common/stringutils.h"
|
#include "common/stringutils.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
#include "level/parser/parserparam.h"
|
#include "level/parser/parserparam.h"
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "object/auto/autopowerstation.h"
|
#include "object/auto/autopowerstation.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#include "object/auto/autoradar.h"
|
#include "object/auto/autoradar.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "math/geometry.h"
|
#include "math/geometry.h"
|
||||||
|
|
||||||
#include "object/object_manager.h"
|
#include "object/object_manager.h"
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
#include "level/parser/parserparam.h"
|
#include "level/parser/parserparam.h"
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#include "common/global.h"
|
#include "common/global.h"
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "level/parser/parserline.h"
|
#include "level/parser/parserline.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/oldmodelmanager.h"
|
#include "graphics/engine/oldmodelmanager.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/oldmodelmanager.h"
|
#include "graphics/engine/oldmodelmanager.h"
|
||||||
|
|
||||||
#include "math/func.h"
|
#include "math/func.h"
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#include "object/motion/motionlevelcontroller.h"
|
#include "object/motion/motionlevelcontroller.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "object/old_object.h"
|
#include "object/old_object.h"
|
||||||
|
|
||||||
#include "physics/physics.h"
|
#include "physics/physics.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/oldmodelmanager.h"
|
#include "graphics/engine/oldmodelmanager.h"
|
||||||
|
|
||||||
#include "math/func.h"
|
#include "math/func.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/oldmodelmanager.h"
|
#include "graphics/engine/oldmodelmanager.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/oldmodelmanager.h"
|
#include "graphics/engine/oldmodelmanager.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
#include "graphics/engine/water.h"
|
#include "graphics/engine/water.h"
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include "common/settings.h"
|
#include "common/settings.h"
|
||||||
#include "common/stringutils.h"
|
#include "common/stringutils.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/lightman.h"
|
#include "graphics/engine/lightman.h"
|
||||||
#include "graphics/engine/lightning.h"
|
#include "graphics/engine/lightning.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
|
@ -74,6 +74,11 @@ namespace Ui
|
||||||
class CObjectInterface;
|
class CObjectInterface;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace Gfx
|
||||||
|
{
|
||||||
|
enum class EngineShadowType : unsigned char;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class COldObject : public CObject,
|
class COldObject : public CObject,
|
||||||
public CInteractiveObject,
|
public CInteractiveObject,
|
||||||
|
@ -253,7 +258,7 @@ public:
|
||||||
CMotion* GetMotion() override;
|
CMotion* GetMotion() override;
|
||||||
CAuto* GetAuto() override;
|
CAuto* GetAuto() override;
|
||||||
|
|
||||||
bool CreateShadowCircle(float radius, float intensity, Gfx::EngineShadowType type = Gfx::EngineShadowType::NORMAL);
|
bool CreateShadowCircle(float radius, float intensity, Gfx::EngineShadowType type = {});
|
||||||
bool CreateShadowLight(float height, Gfx::Color color);
|
bool CreateShadowLight(float height, Gfx::Color color);
|
||||||
|
|
||||||
void FlatParent() override;
|
void FlatParent() override;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/oldmodelmanager.h"
|
#include "graphics/engine/oldmodelmanager.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
#include "common/regex_utils.h"
|
#include "common/regex_utils.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/oldmodelmanager.h"
|
#include "graphics/engine/oldmodelmanager.h"
|
||||||
|
|
||||||
#include "level/parser/parserexceptions.h"
|
#include "level/parser/parserexceptions.h"
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "object/old_object.h"
|
#include "object/old_object.h"
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include "graphics/core/color.h"
|
#include "graphics/core/color.h"
|
||||||
#include "graphics/core/light.h"
|
#include "graphics/core/light.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/lightman.h"
|
#include "graphics/engine/lightman.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
#include "graphics/engine/water.h"
|
#include "graphics/engine/water.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "common/global.h"
|
#include "common/global.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
#include "graphics/engine/pyro_manager.h"
|
#include "graphics/engine/pyro_manager.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "object/task/taskfire.h"
|
#include "object/task/taskfire.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
||||||
#include "math/geometry.h"
|
#include "math/geometry.h"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "object/task/taskfireant.h"
|
#include "object/task/taskfireant.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
||||||
#include "math/geometry.h"
|
#include "math/geometry.h"
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include "object/task/taskflag.h"
|
#include "object/task/taskflag.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
#include "graphics/engine/pyro_manager.h"
|
#include "graphics/engine/pyro_manager.h"
|
||||||
#include "graphics/engine/water.h"
|
#include "graphics/engine/water.h"
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include "common/image.h"
|
#include "common/image.h"
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
#include "graphics/engine/water.h"
|
#include "graphics/engine/water.h"
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#include "math/func.h"
|
#include "math/func.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "object/task/taskgungoal.h"
|
#include "object/task/taskgungoal.h"
|
||||||
|
|
||||||
#include "object/old_object.h"
|
#include "object/old_object.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "common/global.h"
|
#include "common/global.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
||||||
#include "object/object_manager.h"
|
#include "object/object_manager.h"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "object/task/taskmanip.h"
|
#include "object/task/taskmanip.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/pyro_manager.h"
|
#include "graphics/engine/pyro_manager.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include "object/task/taskpen.h"
|
#include "object/task/taskpen.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
||||||
#include "math/geometry.h"
|
#include "math/geometry.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "common/global.h"
|
#include "common/global.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "object/task/tasksearch.h"
|
#include "object/task/tasksearch.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "graphics/core/light.h"
|
#include "graphics/core/light.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/lightman.h"
|
#include "graphics/engine/lightman.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "object/task/tasktake.h"
|
#include "object/task/tasktake.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
#include "graphics/engine/water.h"
|
#include "graphics/engine/water.h"
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include "object/task/taskterraform.h"
|
#include "object/task/taskterraform.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
#include "graphics/engine/pyro_manager.h"
|
#include "graphics/engine/pyro_manager.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "object/task/taskturn.h"
|
#include "object/task/taskturn.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include "common/resources/outputstream.h"
|
#include "common/resources/outputstream.h"
|
||||||
#include "common/resources/resourcemanager.h"
|
#include "common/resources/resourcemanager.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
#include "graphics/engine/water.h"
|
#include "graphics/engine/water.h"
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
#include "graphics/core/renderers.h"
|
#include "graphics/core/renderers.h"
|
||||||
#include "graphics/core/transparency.h"
|
#include "graphics/core/transparency.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "math/func.h"
|
#include "math/func.h"
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "ui/controls/button.h"
|
#include "ui/controls/button.h"
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include "graphics/core/renderers.h"
|
#include "graphics/core/renderers.h"
|
||||||
#include "graphics/core/transparency.h"
|
#include "graphics/core/transparency.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
#include "graphics/engine/water.h"
|
#include "graphics/engine/water.h"
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#include "ui/controls/target.h"
|
#include "ui/controls/target.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "object/object_manager.h"
|
#include "object/object_manager.h"
|
||||||
|
|
|
@ -42,6 +42,8 @@
|
||||||
#include "graphics/core/renderers.h"
|
#include "graphics/core/renderers.h"
|
||||||
#include "graphics/core/transparency.h"
|
#include "graphics/core/transparency.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,12 +21,15 @@
|
||||||
|
|
||||||
#include "ui/controls/control.h"
|
#include "ui/controls/control.h"
|
||||||
|
|
||||||
#include "graphics/engine/engine.h" // TODO: only needed for EngineMouseType
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
namespace Gfx
|
||||||
|
{
|
||||||
|
enum EngineMouseType;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -147,7 +150,7 @@ protected:
|
||||||
bool m_bCapture;
|
bool m_bCapture;
|
||||||
glm::vec2 m_pressPos;
|
glm::vec2 m_pressPos;
|
||||||
int m_pressFlags;
|
int m_pressFlags;
|
||||||
Gfx::EngineMouseType m_pressMouse;
|
Gfx::EngineMouseType m_pressMouse;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
#include "common/make_unique.h"
|
#include "common/make_unique.h"
|
||||||
#include "common/settings.h"
|
#include "common/settings.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/player_profile.h"
|
#include "level/player_profile.h"
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "ui/controls/interface.h"
|
#include "ui/controls/interface.h"
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
#include "common/logger.h"
|
#include "common/logger.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
#include "object/object.h"
|
#include "object/object.h"
|
||||||
|
|
|
@ -63,6 +63,8 @@
|
||||||
|
|
||||||
#include "graphics/core/transparency.h"
|
#include "graphics/core/transparency.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include "graphics/core/color.h"
|
#include "graphics/core/color.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/terrain.h"
|
#include "graphics/engine/terrain.h"
|
||||||
#include "graphics/engine/water.h"
|
#include "graphics/engine/water.h"
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include "ui/particles_generator.h"
|
#include "ui/particles_generator.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
#include "graphics/engine/particle.h"
|
#include "graphics/engine/particle.h"
|
||||||
|
|
||||||
#include "math/func.h"
|
#include "math/func.h"
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include "common/restext.h"
|
#include "common/restext.h"
|
||||||
|
|
||||||
#include "graphics/engine/camera.h"
|
#include "graphics/engine/camera.h"
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/player_profile.h"
|
#include "level/player_profile.h"
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#include "common/restext.h"
|
#include "common/restext.h"
|
||||||
#include "common/stringutils.h"
|
#include "common/stringutils.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "level/player_profile.h"
|
#include "level/player_profile.h"
|
||||||
#include "level/robotmain.h"
|
#include "level/robotmain.h"
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
#include "ui/controls/label.h"
|
#include "ui/controls/label.h"
|
||||||
#include "ui/controls/window.h"
|
#include "ui/controls/window.h"
|
||||||
|
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "common/stringutils.h"
|
#include "common/stringutils.h"
|
||||||
|
|
||||||
#include "graphics/engine/camera.h"
|
#include "graphics/engine/camera.h"
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "ui/controls/button.h"
|
#include "ui/controls/button.h"
|
||||||
#include "ui/controls/check.h"
|
#include "ui/controls/check.h"
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include "common/stringutils.h"
|
#include "common/stringutils.h"
|
||||||
|
|
||||||
#include "graphics/engine/camera.h"
|
#include "graphics/engine/camera.h"
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "ui/controls/button.h"
|
#include "ui/controls/button.h"
|
||||||
#include "ui/controls/check.h"
|
#include "ui/controls/check.h"
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "common/stringutils.h"
|
#include "common/stringutils.h"
|
||||||
|
|
||||||
#include "graphics/engine/camera.h"
|
#include "graphics/engine/camera.h"
|
||||||
|
#include "graphics/engine/engine.h"
|
||||||
|
|
||||||
#include "math/func.h"
|
#include "math/func.h"
|
||||||
|
|
||||||
|
|
|
@ -19,18 +19,31 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "graphics/engine/camera.h"
|
#include <memory>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
|
class CApplication;
|
||||||
class CEventQueue;
|
class CEventQueue;
|
||||||
|
class CFileDialog;
|
||||||
|
class CRobotMain;
|
||||||
class CScript;
|
class CScript;
|
||||||
class CSoundInterface;
|
|
||||||
class CSettings;
|
class CSettings;
|
||||||
struct Program;
|
class CSoundInterface;
|
||||||
class CPauseManager;
|
class CPauseManager;
|
||||||
|
|
||||||
struct ActivePause;
|
struct ActivePause;
|
||||||
struct Event;
|
struct Event;
|
||||||
|
struct Program;
|
||||||
|
|
||||||
|
namespace Gfx
|
||||||
|
{
|
||||||
|
class CCamera;
|
||||||
|
class CEngine;
|
||||||
|
|
||||||
|
enum CameraType;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue