124 void SetName(
const char* graphName);
149 KY_INLINE
KyUInt32 NavGraphBlobBuilder::GetEdgeCount()
const {
return m_edges.GetCount(); }
150 KY_INLINE
KyUInt32 NavGraphBlobBuilder::GetVertexCount()
const {
return m_vertices.GetCount(); }
151 KY_INLINE
KyUInt32 NavGraphBlobBuilder::GetNavTagCount()
const {
return m_navTags.GetCount(); }
KyUInt16 NavGraphVertexLinkType
Defines a type for a tag that determines whether or not a vertex in a NavGraph should be connected to...
Definition: navgraphtypes.h:24
KyUInt32 AddMonodirectionalEdgeWithUnsharedNavTag(KyUInt32 startVertexIdx, KyUInt32 endVertexIdx, DynamicNavTag *dynamicNavTag)
Adds a new edge that connects the specified vertices.
Definition: navgraphblobbuilder.cpp:63
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
static const NavGraphVertexLinkType NavGraphVertexLinkType_LinkToNavMesh
Indicates that this vertex should be connected to the NavMesh. If the vertex is outside, we try to link it inside.
Definition: navgraphtypes.h:26
void AddBidirectionalEdgeWithoutNavTag(KyUInt32 startVertexIdx, KyUInt32 endVertexIdx)
Adds a bidirectional edge that connects the specified vertices.
Definition: navgraphblobbuilder.cpp:85
KyUInt32 AddVertexWithoutNavTag(const Vec3f &position, NavGraphVertexLinkType vertexType=NavGraphVertexLinkType_LinkToNavMesh)
Adds a new vertex to the Graph with no associated NavTag.
Definition: navgraphblobbuilder.cpp:31
KyUInt32 AddVertexWithExclusiveNavTag(const Vec3f &position, DynamicNavTag *dynamicNavTag, NavGraphVertexLinkType vertexType=NavGraphVertexLinkType_LinkToNavMesh)
The term 'ExclusiveNavTag' was confusing or ambiguous, it is not exclusive as in DynamicNavTag::IsExc...
Definition: navgraphblobbuilder.cpp:46
KyUInt32 AddMonodirectionalEdgeWithoutNavTag(KyUInt32 startVertexIdx, KyUInt32 endVertexIdx)
Adds a new edge that connects the specified vertices.
Definition: navgraphblobbuilder.cpp:58
KyUInt32 AddMonodirectionalEdgeWithNavTag(KyUInt32 startVertexIdx, KyUInt32 endVertexIdx, KyUInt32 navTagIdx)
Adds a new edge that connects the specified vertices.
Definition: navgraphblobbuilder.cpp:76
KyUInt32 AddVertexWithNavTag(const Vec3f &position, KyUInt32 navTagIdx, NavGraphVertexLinkType vertexType=NavGraphVertexLinkType_LinkToNavMesh)
Adds a new vertex to the Graph with an associated NavTag that has already been added to the graph...
Definition: navgraphblobbuilder.cpp:51
#define KY_DEPRECATED(expr)
The compiler issues a warning when a deprecated function or typedef is used.
Definition: types.h:93
Navigation return code class.
Definition: types.h:108
virtual void DoBuild()
Implement this function in any class that derives from BaseBlobBuilder.
Definition: navgraphblobbuilder.cpp:115
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
KyUInt32 AddVertexWithUnsharedNavTag(const Vec3f &position, DynamicNavTag *dynamicNavTag, NavGraphVertexLinkType vertexType=NavGraphVertexLinkType_LinkToNavMesh)
Adds a new vertex to the Graph with an associated NavTag that is not supposed to be associated to oth...
Definition: navgraphblobbuilder.cpp:36
BaseBlobBuilder is an abstract base class that builds a blob within a contiguous block of memory...
Definition: baseblobbuilder.h:27
This class allows you to build a NavGraph, which you can then add to the NavData for a sector...
Definition: navgraphblobbuilder.h:22
KyResult AddBidirectionalEdgeWithUnsharedNavTag(KyUInt32 startVertexIdx, KyUInt32 endVertexIdx, DynamicNavTag *dynamicNavTag)
Adds a bidirectional edge that connects the specified vertices.
Definition: navgraphblobbuilder.cpp:90
void AddBidirectionalEdgeWithNavTag(KyUInt32 startVertexIdx, KyUInt32 endVertexIdx, KyUInt32 navTagIdx)
Adds a bidirectional edge that connects the specified vertices.
Definition: navgraphblobbuilder.cpp:104
KyUInt32 AddNavTag(const DynamicNavTag *dynamicNavTag)
Adds a NavTag that will be associated to edge and/or vertices.
Definition: navgraphblobbuilder.cpp:17
3d vector using 32bits floating points.
Definition: vec3f.h:16
void SetName(const char *graphName)
// optional, only for Visual Debug
Definition: navgraphblobbuilder.cpp:110