gwnavruntime/abstractgraph/abstractgraphcellgrid.h Source File
Go to the documentation of this file.
23 class AbstractGraphBlob;
24 class NavMeshGenParameters;
28 class AbstractGraphCell
32 LoadedAbstractGraphCellIdx m_graphCellIdx;
37 class AbstractGraphCellGrid
42 AbstractGraphCellGrid(Database* database)
43 : m_database(database)
44 , m_abstractGraphCellBuffer(
nullptr)
45 , m_abstractGraphCellBufferSize(0)
46 , m_altitudeTolerance(0.5f)
49 ~AbstractGraphCellGrid() { Clear(); }
53 void EnlargeGrid(
const CellBox& cellBox);
55 AbstractGraph* InsertAbstractGraph(AbstractGraphBlob* abstractGraphBlob);
56 void RemoveAbstractGraph(AbstractGraph* abstractGraph);
58 void UpdateNavMeshLinkStatus(
CellBox cellBox);
61 KyResult CheckGenerationParameters(
const NavMeshGenParameters& navMeshGenParameters);
64 LoadedAbstractGraphCellIdx GetAbstractGraphCellIdx(
const CellPos& cellPos)
const;
65 AbstractGraph* GetAbstractGraph(
const LoadedAbstractGraphNodeIdx& node)
const;
66 AbstractGraph* GetAbstractGraph(
const LoadedAbstractGraphCellIdx& cell)
const;
67 AbstractGraph* GetAbstractGraph(
const CellPos& cellPos)
const;
70 void Display(DisplayList& displayList);
73 void SetAbstractGraphIndexInCollection(AbstractGraph* abstractGraph,
KyUInt32 newIndexInCollection);
77 AbstractGraphCell* m_abstractGraphCellBuffer;
78 KyInt32 m_abstractGraphCellBufferSize;
81 TrackedCollection< Ptr<AbstractGraph>, MemStat_NavData> m_abstractGraphs;
Box2i CellBox
A type that represents a bounding box around cells in a 2D grid.
Definition: navmeshtypes.h:31
Vec2i CellPos
A type that represents the position of a cell within a 2D grid.
Definition: navmeshtypes.h:30
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
std::int32_t KyInt32
int32_t
Definition: types.h:24
float KyFloat32
float
Definition: types.h:32