Skip to content

Commit 90c9087

Browse files
committed
xrAICore: try fix linkage for CAI_ObjectLocation members
1 parent 46ee695 commit 90c9087

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

src/xrAICore/Navigation/ai_object_location.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
#include "xrAICore/Navigation/level_graph.h"
1212
#include "xrGame/ai_space.h"
1313

14-
IC void CAI_ObjectLocation::init()
14+
15+
void CAI_ObjectLocation::init()
1516
{
1617
if (ai().get_level_graph())
1718
ai().level_graph().set_invalid_vertex(m_level_vertex_id);
@@ -24,37 +25,37 @@ IC void CAI_ObjectLocation::init()
2425
m_game_vertex_id = GameGraph::_GRAPH_ID(-1);
2526
}
2627

27-
IC void CAI_ObjectLocation::game_vertex(CVertex const* game_vertex)
28+
void CAI_ObjectLocation::game_vertex(CVertex const* game_vertex)
2829
{
2930
VERIFY(ai().game_graph().valid_vertex_id(ai().game_graph().vertex_id(game_vertex)));
3031
m_game_vertex_id = ai().game_graph().vertex_id(game_vertex);
3132
}
3233

33-
IC void CAI_ObjectLocation::game_vertex(_GRAPH_ID const& game_vertex_id)
34+
void CAI_ObjectLocation::game_vertex(_GRAPH_ID const& game_vertex_id)
3435
{
3536
VERIFY(ai().game_graph().valid_vertex_id(game_vertex_id));
3637
m_game_vertex_id = game_vertex_id;
3738
}
3839

39-
IC const CGameGraph::CVertex* CAI_ObjectLocation::game_vertex() const
40+
const CGameGraph::CVertex* CAI_ObjectLocation::game_vertex() const
4041
{
4142
VERIFY(ai().game_graph().valid_vertex_id(m_game_vertex_id));
4243
return (ai().game_graph().vertex(m_game_vertex_id));
4344
}
4445

45-
IC void CAI_ObjectLocation::level_vertex(CLevelVertex const* level_vertex)
46+
void CAI_ObjectLocation::level_vertex(CLevelVertex const* level_vertex)
4647
{
4748
VERIFY(ai().level_graph().valid_vertex_id(ai().level_graph().vertex_id(level_vertex)));
4849
m_level_vertex_id = ai().level_graph().vertex_id(level_vertex);
4950
}
5051

51-
IC void CAI_ObjectLocation::level_vertex(u32 const& level_vertex_id)
52+
void CAI_ObjectLocation::level_vertex(u32 const& level_vertex_id)
5253
{
5354
VERIFY(ai().level_graph().valid_vertex_id(level_vertex_id));
5455
m_level_vertex_id = level_vertex_id;
5556
}
5657

57-
IC const CLevelGraph::CVertex* CAI_ObjectLocation::level_vertex() const
58+
const LevelGraph::CVertex* CAI_ObjectLocation::level_vertex() const
5859
{
5960
VERIFY(ai().level_graph().valid_vertex_id(m_level_vertex_id));
6061
return (ai().level_graph().vertex(m_level_vertex_id));

src/xrAICore/Navigation/ai_object_location.h

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

99
#pragma once
1010

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

1814
class CAI_ObjectLocation
1915
{
2016
public:
21-
typedef GameGraph::_GRAPH_ID _GRAPH_ID;
22-
typedef GameGraph::CVertex CVertex;
23-
typedef LevelGraph::CVertex CLevelVertex;
17+
using _GRAPH_ID = GameGraph::_GRAPH_ID ;
18+
using CVertex = GameGraph::CVertex;
19+
using CLevelVertex = LevelGraph::CVertex;
2420

2521
private:
2622
u32 m_level_vertex_id;
@@ -30,13 +26,13 @@ class CAI_ObjectLocation
3026
IC CAI_ObjectLocation();
3127
void init();
3228
IC void reinit();
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;
29+
void game_vertex(CVertex const* game_vertex);
30+
void game_vertex(_GRAPH_ID const& game_vertex_id);
31+
const CVertex* game_vertex() const;
3632
IC const _GRAPH_ID game_vertex_id() 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;
33+
void level_vertex(CLevelVertex const* level_vertex);
34+
void level_vertex(u32 const& level_vertex_id);
35+
const LevelGraph::CVertex* level_vertex() const;
4036
IC const u32 level_vertex_id() const;
4137
};
4238

0 commit comments

Comments
 (0)