C# Класс Minesweeper.Algorithms.MinefieldExtensions

Extends IMinefield and IMineArea to add some basic helper functions for enumerating objects.
Показать файл Открыть проект

Открытые методы

Метод Описание
AreasByColumn ( this minefield ) : IEnumerable

List all of the areas in a minefield by column.

AreasByRow ( this minefield ) : IEnumerable

List all of the areas in a minefield by row.

ClearAreas ( this minefield ) : IEnumerable

Lists all of the areas in a minefield that do not contain mines, sorted in row order, from left to right, top to bottom.

MineAreas ( this minefield ) : IEnumerable

Lists all of the areas in a minefield that contain mines, sorted in row order, from left to right, top to bottom.

NeighboringAreas ( this mineArea, IMinefield minefield ) : IEnumerable

Lists all of the areas that are adjacent to a mine area in a minefield.

Описание методов

AreasByColumn() публичный статический Метод

List all of the areas in a minefield by column.
public static AreasByColumn ( this minefield ) : IEnumerable
minefield this The minefield to enumerate.
Результат IEnumerable

AreasByRow() публичный статический Метод

List all of the areas in a minefield by row.
public static AreasByRow ( this minefield ) : IEnumerable
minefield this The minefield to enumerate.
Результат IEnumerable

ClearAreas() публичный статический Метод

Lists all of the areas in a minefield that do not contain mines, sorted in row order, from left to right, top to bottom.
public static ClearAreas ( this minefield ) : IEnumerable
minefield this The minefield to enumerate.
Результат IEnumerable

MineAreas() публичный статический Метод

Lists all of the areas in a minefield that contain mines, sorted in row order, from left to right, top to bottom.
public static MineAreas ( this minefield ) : IEnumerable
minefield this The minefield to enumerate.
Результат IEnumerable

NeighboringAreas() публичный статический Метод

Lists all of the areas that are adjacent to a mine area in a minefield.
public static NeighboringAreas ( this mineArea, IMinefield minefield ) : IEnumerable
mineArea this Returns the neighbors of this area.
minefield IMinefield Uses this minefield to get references to neighboring areas.
Результат IEnumerable