Ejemplo n.º 1
0
 public void GenerateMapData(float beginx, float beginy, float deltax, float deltay, float heightRange)
 {
     for (int i = 0; i < m_Width; i++)
     {
         for (int j = 0; j < m_Height; j++)
         {
             m_MapData[i, j] = FOWUtils.IsObstacle(beginx, beginy, deltax, deltay, heightRange, i, j);
         }
     }
 }
Ejemplo n.º 2
0
 public void GenerateMapData(float beginx, float beginy, float deltax, float deltay, float heightRange)
 {
     m_MapData = new bool[width * height];
     for (int i = 0; i < width; i++)
     {
         for (int j = 0; j < height; j++)
         {
             m_MapData[j * width + i] = FOWUtils.IsObstacle(beginx, beginy, deltax, deltay, heightRange, i, j);
         }
     }
 }