28 #ifndef HPL_GRIDMAP2D_H 29 #define HPL_GRIDMAP2D_H 31 #include "common/array.h" 32 #include "hpl1/engine/graphics/GraphicsTypes.h" 33 #include "hpl1/engine/math/MathTypes.h" 34 #include "common/stablemap.h" 39 class iLowLevelGraphics;
53 void Update(
const cRect2f &aRect);
56 unsigned int GetHandle() {
return mlHandle; }
57 iEntity2D *GetEntity() {
return mpEntity; }
58 bool FirstTime(
unsigned int alGlobalCount) {
59 if (alGlobalCount < mlCount)
61 mlCount = alGlobalCount + 1;
70 tGrid2DPtrVec mvGridParents;
92 pObject->GetHandle(), pObject));
95 void Erase(
unsigned int alHandle) {
96 m_mapObjects.erase(alHandle);
100 tGrid2DObjectMap m_mapObjects;
110 virtual bool HasNext() = 0;
126 tGrid2DObjectMapIt mIt;
139 void GetGridObject();
157 cGrid2D *GetAt(
int alX,
int alY);
162 int GetMaxArraySize() {
return mvMaxGridSpan.x * mvMaxGridSpan.y; }
163 const cVector2l &GetMaxGridSpan() {
return mvMaxGridSpan; }
164 const cVector2l &GetGridSize() {
return mvGridSize; }
165 const cVector2l &GetGridNum() {
return mvGridNum; }
167 tGrid2DObjectMap *GetAllMap() {
return &m_mapAllObjects; }
178 tGrid2DObjectMap m_mapAllObjects;
182 tGrid2DObjectMap m_mapGlobalObjects;
186 tGrid2DObjectMap m_mapOuterObjects;
190 unsigned int mlGlobalCount;
192 unsigned int mlHandleCount;
202 #endif // HPL_GRIDMAP2D_H
Definition: GridMap2D.h:48
T * iterator
Definition: array.h:54
typename TreeT::BasicIterator iterator
Definition: stablemap.h:48
Definition: GridMap2D.h:114
Definition: GridMap2D.h:147
Definition: GridMap2D.h:107
Definition: GridMap2D.h:86
Definition: Entity2D.h:39
Definition: LowLevelGraphics.h:200