gwnavgeneration/input/inputcellinfo.h Source File
Go to the documentation of this file.
9 #ifndef GwNavGen_InputCellInfo_H
10 #define GwNavGen_InputCellInfo_H
23 class GeneratorSectorBuilder;
38 InputCellInfo(GeneratorSectorBuilder* sectorBuilder,
const CellPos& cellpos, Ptr<BlobHandler<InputCellBlob> > inputCellBlobHandler)
39 : m_sectorBuilder(sectorBuilder), m_cellPos(cellpos), m_inputCellBlobHandler(inputCellBlobHandler)
42 bool operator==(
const InputCellInfo& other)
const
44 return m_sectorBuilder == other.m_sectorBuilder
45 && m_cellPos == other.m_cellPos;
49 bool operator!=(
const InputCellInfo& other)
const {
return !operator==(other); }
52 GeneratorSectorBuilder* m_sectorBuilder;
54 Ptr<BlobHandler<InputCellBlob> > m_inputCellBlobHandler;
58 class InputCellInfoArrayAtPos :
public RefCountBaseNTS<InputCellInfoArrayAtPos, MemStat_NavDataGen>
63 void PushBack(
const InputCellInfo& inputCellInfo) { m_inputCellInfos.PushBack(inputCellInfo); }
65 KyUInt32 GetCount()
const {
return m_inputCellInfos.GetCount(); }
67 const InputCellInfo& Get(
KyUInt32 index)
const {
return m_inputCellInfos[index]; }
68 InputCellInfo& Get(
KyUInt32 index) {
return m_inputCellInfos[index]; }
70 bool DoesContain(
const InputCellInfo& inputCellInfo) {
return m_inputCellInfos.DoesContain(inputCellInfo); }
77 KyArray<InputCellInfo> m_inputCellInfos;
Vec2i CellPos
A type that represents the position of a cell within a 2D grid.
Definition: navmeshtypes.h:33
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
#define KY_NULL
Null value.
Definition: types.h:247
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