#ifndef __MAPHPP__ #define __MAPHPP__ #include "dib surface\dibsection.hpp" class CPerson; class CMapNode; class CMapQuadNode; struct MAPELEMENT { bool passable; float weight; }; int SquareInfo (int x,int y); void RenderEdges (CDIBSurface& dest,int dx); const double MAPX = 256.0; const double MAPY = 256.0; const int MAPSIZE = 256; const int MAXDEPTH = 16; const int MAXDEPTH2 = (MAXDEPTH/2); const int MAXDEPTH4 = (MAXDEPTH/4); extern MAPELEMENT g_Map[MAPSIZE][MAPSIZE]; extern CMapNode *g_MapTree; inline bool Passable (int dx,int dy) { if (dx < 0) return false; if (dy < 0) return false; if (dx >= MAPSIZE) return false; if (dy >= MAPSIZE) return false; if (!g_Map[dx][dy].passable) return false; /* for (i=0;i