Esempio n. 1
0
 private void CopyMap(csMapbuilder b)
 {
     for (int x = 0; x < GameConstants.MapWidth; x++)
     {
         for (int y = 0; y < GameConstants.MapHeight; y++)
         {
             TileTypes type = ( TileTypes )b.GetCell(x, y);
             SetTile(new Point(x, y), type);
         }
     }
 }
Esempio n. 2
0
        void buildDefaultMap()
        {
            csMapbuilder b = new csMapbuilder(mapRect.Width, mapRect.Height);

            b.Build_OneStartRoom();

            for (int x = 0; x < mapRect.Width; x++)
            {
                for (int y = 0; y < mapRect.Height; y++)
                {
                    TileType type = ( TileType )b.GetCell(x, y);
                    SetTile(new Point(x, y), type);
                }
            }

            rooms = b.GetRooms();
        }