9 #ifndef Navigation_NavMeshElementManager_H
10 #define Navigation_NavMeshElementManager_H
22 class NavGraphManager;
28 class NavMeshElementManager
43 void SetNavGraphManager(NavGraphManager* navGraphManager);
49 void SortNavMeshAccordingToGuidCompound(
CellBox& currentUpdateCellBox,
bool forceActiveIfAlone = false);
70 ActiveGuids m_activatedGuids;
71 GuidCompoundSorter m_guidCompoundSorter;
84 return m_navMeshElements[idx];
87 KY_INLINE
void NavMeshElementManager::SortNavMeshAccordingToGuidCompound(
CellBox& currentUpdateCellBox,
bool forceActiveIfAlone)
89 m_guidCompoundSorter.Sort(m_activatedGuids, currentUpdateCellBox, forceActiveIfAlone);
95 #endif //Navigation_NavMeshElementManager_H
bool IsCompatibleWith(const NavMeshGenParameters &navMeshGenParameters) const
Indicates whether the specified NavMeshElement was created with the same generation parameters as the...
KyResult CheckGenerationParameters(const NavMeshGenParameters &navMeshGenParameters)
Called internally before adding a NavMeshElement to the NavMeshElementManager.
This class represents a two-dimensional axis-aligned bounding box whose dimensions are stored using 3...
Definition: box2i.h:119
This class is a runtime wrapper of a NavMeshElementBlob.
Definition: navmeshelement.h:24
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
Box2i CellBox
A type that represents a bounding box around cells in a 2D grid.
Definition: navmeshtypes.h:34
TrackedCollection is a class which is a "Collection" of T=C* or T = Ptr< c="" /> (not sorted...
Definition: collection.h:87
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
NavMeshElement * GetNavMeshElement(KyUInt32 idx) const
Retrieves the NavMesh with the specified index from within the list of NavMeshes in the NavMeshElemen...
Definition: navmeshelementmanager.h:95
This class is a runtime container for all NavData that represents the world from the point of view of...
Definition: database.h:64
This object indicates the settings used to generate the NavMeshElementBlob, and thereby the physical ...
Definition: navmeshelementblob.h:24
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
KyUInt32 GetNavMeshElementCount() const
Indicates the number of NavMeshes that have been added to the NavMeshElementManager.
Definition: navmeshelementmanager.h:93
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
This class is a runtime container for the all NavMeshElement that are created from the NavMeshElement...
Definition: navmeshelementmanager.h:30