public DungeonMap CreateMap() { _map.Initialize(_width, _height); foreach (Block block in _map.GetAllBlocks()) { _map.SetBlockProperties(block.X, block.Y, true, true, true); } foreach (Block block in _map.GetBlocksInRows(0, _height - 1)) { _map.SetBlockProperties(block.X, block.Y, false, false, true); } foreach (Block block in _map.GetBlocksInColumns(0, _width - 1)) { _map.SetBlockProperties(block.X, block.Y, false, false, true); } return(_map); }