Skip to content

Commit 490a139

Browse files
committed
xrGame,xrAICore: fix windows linkage. Game not playable yet!!!(wrong
size of xr_token)
1 parent 90c9087 commit 490a139

File tree

8 files changed

+29
-21
lines changed

8 files changed

+29
-21
lines changed

src/xrAICore/Navigation/ai_object_location.h

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88

99
#pragma once
1010

11-
#include "xrAICore/Navigation/game_graph.h"
12-
#include "xrAICore/Navigation/level_graph.h"
11+
#include "xrAICore/Navigation/game_graph_space.h"
12+
13+
namespace LevelGraph
14+
{
15+
class CVertex;
16+
};
1317

1418
class CAI_ObjectLocation
1519
{
1620
public:
17-
using _GRAPH_ID = GameGraph::_GRAPH_ID ;
21+
using _GRAPH_ID = GameGraph::_GRAPH_ID;
1822
using CVertex = GameGraph::CVertex;
1923
using CLevelVertex = LevelGraph::CVertex;
2024

@@ -24,15 +28,15 @@ class CAI_ObjectLocation
2428

2529
public:
2630
IC CAI_ObjectLocation();
27-
void init();
31+
IC void init();
2832
IC void reinit();
29-
void game_vertex(CVertex const* game_vertex);
30-
void game_vertex(_GRAPH_ID const& game_vertex_id);
31-
const CVertex* game_vertex() const;
33+
IC void game_vertex(CVertex const* game_vertex);
34+
IC void game_vertex(_GRAPH_ID const& game_vertex_id);
35+
IC const CVertex* game_vertex() const;
3236
IC const _GRAPH_ID game_vertex_id() const;
33-
void level_vertex(CLevelVertex const* level_vertex);
34-
void level_vertex(u32 const& level_vertex_id);
35-
const LevelGraph::CVertex* level_vertex() const;
37+
IC void level_vertex(CLevelVertex const* level_vertex);
38+
IC void level_vertex(u32 const& level_vertex_id);
39+
IC const CLevelVertex* level_vertex() const;
3640
IC const u32 level_vertex_id() const;
3741
};
3842

src/xrAICore/Navigation/ai_object_location.cpp renamed to src/xrAICore/Navigation/ai_object_location_impl.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
// Description : AI object location implementation
77
////////////////////////////////////////////////////////////////////////////
88

9+
#pragma once
10+
911
#include "xrAICore/Navigation/ai_object_location.h"
1012
#include "xrAICore/Navigation/game_graph.h"
1113
#include "xrAICore/Navigation/level_graph.h"
12-
#include "xrGame/ai_space.h"
13-
1414

15-
void CAI_ObjectLocation::init()
15+
IC void CAI_ObjectLocation::init()
1616
{
1717
if (ai().get_level_graph())
1818
ai().level_graph().set_invalid_vertex(m_level_vertex_id);
@@ -25,37 +25,37 @@ void CAI_ObjectLocation::init()
2525
m_game_vertex_id = GameGraph::_GRAPH_ID(-1);
2626
}
2727

28-
void CAI_ObjectLocation::game_vertex(CVertex const* game_vertex)
28+
IC void CAI_ObjectLocation::game_vertex(CVertex const* game_vertex)
2929
{
3030
VERIFY(ai().game_graph().valid_vertex_id(ai().game_graph().vertex_id(game_vertex)));
3131
m_game_vertex_id = ai().game_graph().vertex_id(game_vertex);
3232
}
3333

34-
void CAI_ObjectLocation::game_vertex(_GRAPH_ID const& game_vertex_id)
34+
IC void CAI_ObjectLocation::game_vertex(_GRAPH_ID const& game_vertex_id)
3535
{
3636
VERIFY(ai().game_graph().valid_vertex_id(game_vertex_id));
3737
m_game_vertex_id = game_vertex_id;
3838
}
3939

40-
const CGameGraph::CVertex* CAI_ObjectLocation::game_vertex() const
40+
IC const CGameGraph::CVertex* CAI_ObjectLocation::game_vertex() const
4141
{
4242
VERIFY(ai().game_graph().valid_vertex_id(m_game_vertex_id));
4343
return (ai().game_graph().vertex(m_game_vertex_id));
4444
}
4545

46-
void CAI_ObjectLocation::level_vertex(CLevelVertex const* level_vertex)
46+
IC void CAI_ObjectLocation::level_vertex(CLevelVertex const* level_vertex)
4747
{
4848
VERIFY(ai().level_graph().valid_vertex_id(ai().level_graph().vertex_id(level_vertex)));
4949
m_level_vertex_id = ai().level_graph().vertex_id(level_vertex);
5050
}
5151

52-
void CAI_ObjectLocation::level_vertex(u32 const& level_vertex_id)
52+
IC void CAI_ObjectLocation::level_vertex(u32 const& level_vertex_id)
5353
{
5454
VERIFY(ai().level_graph().valid_vertex_id(level_vertex_id));
5555
m_level_vertex_id = level_vertex_id;
5656
}
5757

58-
const LevelGraph::CVertex* CAI_ObjectLocation::level_vertex() const
58+
IC const CLevelGraph::CVertex* CAI_ObjectLocation::level_vertex() const
5959
{
6060
VERIFY(ai().level_graph().valid_vertex_id(m_level_vertex_id));
6161
return (ai().level_graph().vertex(m_level_vertex_id));

src/xrGame/CustomMonster.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "item_manager.h"
2424
#include "danger_manager.h"
2525
#include "xrAICore/Navigation/ai_object_location.h"
26+
#include "xrAICore/Navigation/ai_object_location_impl.h"
2627
#include "xrAICore/Navigation/level_graph.h"
2728
#include "xrAICore/Navigation/game_graph.h"
2829
#include "movement_manager.h"

src/xrGame/GameObject.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "object_factory.h"
1919
#include "Include/xrRender/Kinematics.h"
2020
#include "xrAICore/Navigation/ai_object_location.h"
21+
#include "xrAICore/Navigation/ai_object_location_impl.h"
2122
#include "xrAICore/Navigation/game_graph.h"
2223
#include "ai_debug.h"
2324
#include "xrEngine/IGame_Level.h"

src/xrGame/ai/monsters/ai_monster_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "StdAfx.h"
22
#include "ai_monster_utils.h"
33
#include "Entity.h"
4-
#include "xrAICore/Navigation/ai_object_location.h"
4+
#include "xrAICore/Navigation/ai_object_location_impl.h"
55
#include "ai_space.h"
66
#include "xrAICore/Navigation/level_graph.h"
77
#include "Include/xrRender/Kinematics.h"

src/xrGame/ai/monsters/basemonster/base_monster.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include "ai/monsters/ai_monster_squad.h"
4040
#include "Actor.h"
4141
#include "xrAICore/Navigation/ai_object_location.h"
42+
#include "xrAICore/Navigation/ai_object_location_impl.h"
4243
#include "ai_space.h"
4344
#include "xrScriptEngine/script_engine.hpp"
4445
#include "ai/monsters/anti_aim_ability.h"

src/xrGame/ai/monsters/rats/ai_rat_templates.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "xrAICore/Navigation/game_graph.h"
1313
#include "magic_box3.h"
1414
#include "Include/xrRender/RenderVisual.h"
15-
#include "xrAICore/Navigation/ai_object_location.h"
15+
#include "xrAICore/Navigation/ai_object_location_impl.h"
1616
#include "xrAICore/Navigation/level_graph.h"
1717
#include "movement_manager.h"
1818
#include "location_manager.h"

src/xrGame/ai/stalker/ai_stalker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "memory_manager.h"
3939
#include "sight_manager.h"
4040
#include "xrAICore/Navigation/ai_object_location.h"
41+
#include "xrAICore/Navigation/ai_object_location_impl.h"
4142
#include "stalker_movement_manager_smart_cover.h"
4243
#include "EntityCondition.h"
4344
#include "xrScriptEngine/script_engine.hpp"

0 commit comments

Comments
 (0)