Skip to content

Commit 10d48b0

Browse files
committed
WIP of xrAI and xrSE_Factory. Headers reorganization and cleanup.
1 parent c108f5a commit 10d48b0

15 files changed

+28
-79
lines changed

src/utils/xrAI/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#pragma once
22

33
#include "xrCDB/xrCDB.h"
4-
#include "AIMapExport.h"
54
#include "utils/Shader_xrLC.h"
65
#include "xrAICore/Navigation/level_graph.h"
76
#include "editors/LevelEditor/Engine/communicate.h"
87
#include "Layers/xrRender/ETextureParams.h"
8+
#include "AIMapExport.h"
99

1010
// base patch used all the time up to merging
1111
const u32 InvalidNode = (1 << 24) - 1;

src/utils/xrAI/factory_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "xrServer_Object_Base.h"
3+
#include "xrServerEntities/xrServer_Object_Base.h"
44

55
extern "C" {
66
typedef XR_IMPORT IServerEntity* __stdcall Factory_Create(LPCSTR section);

src/utils/xrAI/game_graph_builder.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
#include "stdafx.h"
1010
#include "game_graph_builder.h"
11-
#include "xrAICore/Navigation/graph_abstract.h"
12-
#include "xrAICore/Navigation/graph_engine.h"
13-
#include "xrServer_Objects_ALife.h"
11+
#include "xrServerEntities/xrServer_Objects_ALife.h"
1412
#include "factory_api.h"
1513
#include "guid_generator.h"
1614

src/utils/xrAI/game_graph_builder.h

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,14 @@
88

99
#pragma once
1010

11-
#include "Common/LevelStructure.hpp"
12-
#include "alife_space.h"
13-
#include <loki/EmptyType.h>
14-
15-
class CLevelGraph;
16-
class CGameLevelCrossTable;
17-
18-
template
19-
<
20-
typename _data_type /*= Loki::EmptyType*/,
21-
typename _edge_weight_type /*= float*/,
22-
typename _vertex_id_type/* = u32*/,
23-
typename _edge_data_type = Loki::EmptyType
24-
>
25-
class CGraphAbstract;
26-
27-
namespace GameGraph
28-
{
29-
struct CVertex;
30-
};
31-
32-
class NET_Packet;
33-
34-
class CGraphEngine;
11+
#include "xrAICore/Navigation/graph_abstract.h"
12+
#include "xrAICore/Navigation/graph_engine.h"
3513

3614
class CGameGraphBuilder
3715
{
3816
private:
3917
typedef GameGraph::CVertex vertex_type;
40-
typedef CGraphAbstract<vertex_type, float, u32> graph_type;
18+
typedef CGraphAbstract<vertex_type, float, u32, Loki::EmptyType> graph_type;
4119
typedef xr_vector<xr_vector<u32>> DISTANCES;
4220
typedef std::pair<u32, u32> PAIR;
4321
typedef std::pair<float, PAIR> TRIPPLE;

src/utils/xrAI/game_spawn_constructor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88

99
#include "stdafx.h"
1010
#include "game_spawn_constructor.h"
11-
#include "level_spawn_constructor.h"
12-
#include "xrServer_Objects_ALife_All.h"
1311
#include "xrAICore/Navigation/graph_engine.h"
1412
#include "xrAICore/Navigation/PatrolPath/patrol_path_storage.h"
13+
#include "level_spawn_constructor.h"
1514
#include "xrAI.h"
1615

1716
extern LPCSTR GAME_CONFIG;

src/utils/xrAI/game_spawn_constructor.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88

99
#pragma once
1010

11-
#include "alife_space.h"
1211
#include "xr_graph_merge.h"
1312
#include "xrAICore/Navigation/graph_abstract.h"
13+
#include "xrServerEntities/alife_space.h"
14+
#include "level_spawn_constructor.h"
1415
#include "spawn_constructor_space.h"
1516
#include "server_entity_wrapper.h"
1617
#include "guid_generator.h"
1718

18-
class CSE_Abstract;
1919
class CLevelSpawnConstructor;
20-
class CSE_ALifeCreatureAbstract;
21-
class CPatrolPathStorage;
2220

2321
class CGameSpawnConstructor
2422
{

src/utils/xrAI/level_spawn_constructor.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@
88

99
#include "stdafx.h"
1010
#include "level_spawn_constructor.h"
11-
#include "xrAICore/Navigation/graph_engine.h"
12-
#include "xrAICore/Navigation/PatrolPath/patrol_path_storage.h"
13-
#include "xrServer_Objects_ALife_All.h"
11+
#include "xrServerEntities/restriction_space.h"
12+
#include "xrServerEntities/clsid_game.h"
1413
#include "factory_api.h"
15-
#include "clsid_game.h"
16-
#include "game_spawn_constructor.h"
17-
#include "space_restrictor_wrapper.h"
18-
#include "restriction_space.h"
1914

2015
#define IGNORE_ZERO_SPAWN_POSITIONS
2116

src/utils/xrAI/level_spawn_constructor.h

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,13 @@
88

99
#pragma once
1010

11+
#include "xrAICore/Navigation/PatrolPath/patrol_path_storage.h"
1112
#include "utils/xrLCUtil/xrThread.hpp"
1213
#include "spawn_constructor_space.h"
14+
#include "space_restrictor_wrapper.h"
15+
#include "game_spawn_constructor.h"
1316

14-
class CLevelGraph;
15-
class CGameLevelCrossTable;
1617
class CGameSpawnConstructor;
17-
class CSE_ALifeCreatureActor;
18-
class CGraphEngine;
19-
class CSE_Abstract;
20-
class CSE_ALifeObject;
21-
class CSE_ALifeGraphPoint;
22-
// class CSE_SpawnGroup;
23-
class CSE_ALifeAnomalousZone;
24-
class CSpaceRestrictorWrapper;
25-
class CPatrolPathStorage;
26-
class CSE_ALifeDynamicObject;
2718

2819
class CLevelSpawnConstructor : public CThread
2920
{

src/utils/xrAI/server_entity_wrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#include "stdafx.h"
1010
#include "server_entity_wrapper.h"
11-
#include "xrServer_Objects.h"
12-
#include "xrmessages.h"
11+
#include "xrServerEntities/xrServer_Objects.h"
12+
#include "xrServerEntities/xrmessages.h"
1313

1414
#ifdef AI_COMPILER
1515
#include "factory_api.h"

src/utils/xrAI/server_entity_wrapper.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
#pragma once
1010

11-
#include "Common/object_interfaces.h"
12-
13-
class CSE_Abstract;
11+
#include "xrServerEntities/xrServer_Object_Base.h"
1412

1513
class CServerEntityWrapper : public ISerializable
1614
{

0 commit comments

Comments
 (0)