예제 #1
0
        public void updateFovMap(int level, Point point, FOVTerrain newTerrain)
        {
            if (point.x < 0 || point.x >= levelTCODMapSizes[level].width ||
                point.y < 0 || point.y >= levelTCODMapSizes[level].height)
                return;

            levelTCODMaps[level].SetCell(point.x, point.y, newTerrain != FOVTerrain.Blocking, false);
        }
예제 #2
0
        public void updateFovMap(int level, Point point, FOVTerrain newTerrain)
        {
            if (point.x < 0 || point.x >= levelTCODMapSizes[level].width ||
                point.y < 0 || point.y >= levelTCODMapSizes[level].height)
            {
                return;
            }

            levelTCODMaps[level].SetCell(point.x, point.y, newTerrain != FOVTerrain.Blocking, false);
        }