8 #ifndef Navigation_NavMeshElement_H
9 #define Navigation_NavMeshElement_H
36 KyUInt32 GetIndexInCollection() const;
37 void SetIndexInCollection(
KyUInt32 indexInCollection);
53 bool m_guidCompoundIsCompatible;
62 KY_DEBUG_ASSERTN(
IsStillLoaded(),(
"You Cannot call this function if NavMeshElement has been unloaded or not loaded yet"));
68 KY_DEBUG_ASSERTN(
IsStillLoaded(),(
"You Cannot call this function if NavMeshElement has been unloaded or not loaded yet"));
74 KY_INLINE
KyUInt32 NavMeshElement::ComputeSizeForNavMeshElement(
const NavMeshElementBlob& navMeshElementBlob)
76 return sizeof(NavMeshElement) + navMeshElementBlob.GetNavCellBlobCount() * (
KyUInt32)
sizeof(
void*);
80 #endif //Navigation_NavMeshElement_H
This class is a runtime wrapper of a NavMeshElementBlob.
Definition: navmeshelement.h:24
const NavMeshElementBlob * m_navMeshElementBlob
The NavMeshElementBlob that contains the static data for this NavMesh. Do not modify.
Definition: navmeshelement.h:66
#define KY_REFCOUNT_MALLOC_FREE(ClassName)
Specific to RefCounting, no inheritance involved, used to make RefCount-able classes compatible with ...
Definition: memory.h:145
#define KY_NULL
Null value.
Definition: types.h:247
GuidCompound m_guidCompound
The GuidCompound that uniquely identifies this NavMeshElementBlob. For internal use. Do not modify.
Definition: navmeshelementblob.h:85
bool IsStillLoaded() const
This function returns false if the NavData containing corresponding NavMeshElementBlob has been remov...
Definition: navmeshelement.h:69
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
This class is a runtime wrapper of a NavCellBlob.
Definition: navcell.h:33
This class is a runtime container for all NavData that represents the world from the point of view of...
Definition: database.h:64
NavCell ** m_navCells
The array of NavCells that make up this NavMeshElement. Do not modify.
Definition: navmeshelement.h:58
Definition: gamekitcrowddispersion.h:20
The NavMeshElementBlob contains the NavMesh static data (a set of NavCellBlob) for an element (a Guid...
Definition: navmeshelementblob.h:51
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
const GuidCompound & GetGuidCompound() const
Retrieves the GuidCompound that uniquely identifies this NavMeshElement.
Definition: navmeshelement.h:77
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
KyUInt32 m_numberOfCells
The number of NavCells in m_navCells. Do not modify.
Definition: navmeshelement.h:59
KyUInt32 m_indexInCollection
For TrackedCollection.
Definition: navmeshelement.h:61
Database * m_database
The Database in which the parentNavData has been added to. Do not modify.
Definition: navmeshelement.h:57