gwnavruntime/database/navgraphmanager.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_NavGraphManager_H
9 #define Navigation_NavGraphManager_H
29 KyUInt32 GetNumberOfNavGraph() const;
30 NavGraph* GetNavGraph(
KyUInt32 index) const;
33 NavGraphManager(Database* database);
38 void StartInsertion();
39 NavGraph* InsertNavGraph(const NavGraphBlob* navGraphBlob, NavData* navData);
43 void RemoveNavGraph(NavGraph* navGraph);
46 void LinkWaitingNavGraphs(
CellBox& cellBox);
47 bool HasWaitingNavGraphs();
50 NavGraphLinker m_navGraphLinker;
56 Collection<NavGraph*, MemStat_NavData> m_waitingNavGraphs;
57 TrackedCollection<Ptr<NavGraph>, MemStat_NavData> m_navGraphs;
61 KY_INLINE
void NavGraphManager::StartInsertion()
63 KY_LOG_ERROR_IF(m_numberOfNavGraphToUpdate != 0, (
"At this point, the number of Graph to update must be set to 0"));
66 KY_INLINE
void NavGraphManager::StartRemoval()
68 KY_LOG_ERROR_IF(m_numberOfNavGraphToUpdate != 0, (
"At this point, the number of Graph to update must be set to 0"));
72 KY_INLINE
void NavGraphManager::EndRemoval() {}
74 KY_INLINE
KyUInt32 NavGraphManager::GetNumberOfNavGraph()
const {
return m_navGraphs.GetCount(); }
75 KY_INLINE NavGraph* NavGraphManager::GetNavGraph(
KyUInt32 index)
const
77 KY_DEBUG_ASSERTN(index < GetNumberOfNavGraph(), (
"Bad index %u (max is %u)", index, GetNumberOfNavGraph()));
78 return m_navGraphs[index];
81 KY_INLINE
bool NavGraphManager::HasWaitingNavGraphs() {
return m_waitingNavGraphs.IsEmpty() ==
false; }
85 #endif // Navigation_NavGraphManager_H
Box2i CellBox
A type that represents a bounding box around cells in a 2D grid.
Definition: navmeshtypes.h:34
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36