gwnavruntime/navgraph/navgraphlink.h Source File
Go to the documentation of this file.
10 #ifndef Navigation_NavGraphLink_H
11 #define Navigation_NavGraphLink_H
25 NavGraphLink(const NavGraphVertexRawPtr& navGraphVertexRawPtr);
27 void Set(const NavTriangleRawPtr& triangleRawPtr);
29 bool IsValid()
const {
return GetIndexInCollection() !=
KyUInt16MAXVAL; }
31 KyUInt32 GetIndexInCollection()
const;
32 void SetIndexInCollection(
KyUInt32 indexInCollection);
37 NavGraphVertexRawPtr m_navGraphVertexRawPtr;
38 NavTriangleRawPtr m_navTriangleRawPtr;
41 KY_INLINE NavGraphLink::NavGraphLink(
const NavGraphVertexRawPtr& navGraphVertexRawPtr) :
43 m_navGraphVertexRawPtr(navGraphVertexRawPtr)
46 KY_INLINE
void NavGraphLink::Set(
const NavTriangleRawPtr& triangleRawPtr) { m_navTriangleRawPtr = triangleRawPtr; }
48 KY_INLINE
KyUInt32 NavGraphLink::GetIndexInCollection()
const {
return m_indexInFloorCollection; }
49 KY_INLINE
void NavGraphLink::SetIndexInCollection(
KyUInt32 indexInCollection) { m_indexInFloorCollection = (
KyUInt16)indexInCollection; }
53 #endif // Navigation_NavGraphLink_H
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
#define KyUInt16MAXVAL
The maximum value that can be stored in the KyUInt16 variable type.
Definition: types.h:230
unsigned short KyUInt16
Type used internally to represent an unsigned 16-bit integer.
Definition: types.h:40
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36