gwnavruntime/navmesh/dynamicnavcell.h Source File
Go to the documentation of this file.
12 #ifndef Navigation_DynamicNavCell_H
13 #define Navigation_DynamicNavCell_H
22 struct DynamicCellBoundaryFloor
27 struct DynamicCellBoundaryEdge
32 struct DynamicCellBoundaryEdgesInFloor
34 DynamicCellBoundaryEdgesInFloor() : m_cellBoundaryEdges(
KY_NULL) {}
35 DynamicCellBoundaryEdgesInFloor(MemoryHeap* heap) : m_cellBoundaryEdges(heap)
38 m_cellBoundaryEdges.PushBack(ArrayDH<DynamicCellBoundaryEdge>(heap));
40 ArrayDH<ArrayDH<DynamicCellBoundaryEdge> > m_cellBoundaryEdges;
51 DynamicNavCell(MemoryHeap* heap, const CellDesc& cellDesc)
52 : m_cellDesc(cellDesc)
58 for (
KyUInt32 i = 0; i < m_floors.GetCount(); ++i)
62 CardinalDir GetBoundaryDir(
const PixelPos& start,
const PixelPos& end)
const;
64 bool AreIndexesWithinBounds()
const
67 for (
KyUInt32 floorIdx = 0; floorIdx < m_floors.GetCount(); ++floorIdx)
69 if (!m_floors[floorIdx].AreIndexesWithinBounds())
80 if (m_floors.IsEmpty())
83 for (
KyUInt32 i = 0; i < m_floors.GetCount(); ++i)
85 const DynamicNavFloor& floor = m_floors[i];
86 if (floor.m_edges.IsEmpty() ==
false || floor.m_triangles.IsEmpty() == false )
95 KyArrayDH<DynamicNavFloor> m_floors;
101 #endif //Navigation_DynamicNavCell_H
#define KY_NULL
Null value.
Definition: types.h:247
KyUInt32 CardinalDir
Defines a type that refers to one of the cardinal points on the compass:
Definition: cardinaldir.h:23
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