C# Класс Minesweeper.MineSweeperGame

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
FlagTile ( int col, int row ) : void
ForceRedraw ( ) : void
GetCurrentScore ( ) : int
GetDrawType ( int col, int row ) : DrawType
GetTileValue ( int col, int row ) : int
MineSweeperGame ( int columns, int rows, int mines, bool bDoQuestioned, Func adrawer ) : System
UncoverTile ( int col, int row ) : void
isGameOver ( ) : bool
wasGameWon ( ) : bool

Приватные методы

Метод Описание
CalculateTileValue ( Minesweeper.Tile tile ) : int
CheckForWin ( ) : bool
DoNeighbor ( Minesweeper.Tile tile, Neighbors neighbor ) : void
DoUncover ( Minesweeper.Tile tile ) : void
GetNeighbor ( Minesweeper.Tile target, Neighbors neighbor ) : Minesweeper.Tile
RandomTile ( ) : Point

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

FlagTile() публичный Метод

public FlagTile ( int col, int row ) : void
col int
row int
Результат void

ForceRedraw() публичный Метод

public ForceRedraw ( ) : void
Результат void

GetCurrentScore() публичный Метод

public GetCurrentScore ( ) : int
Результат int

GetDrawType() публичный Метод

public GetDrawType ( int col, int row ) : DrawType
col int
row int
Результат DrawType

GetTileValue() публичный Метод

public GetTileValue ( int col, int row ) : int
col int
row int
Результат int

MineSweeperGame() публичный Метод

public MineSweeperGame ( int columns, int rows, int mines, bool bDoQuestioned, Func adrawer ) : System
columns int
rows int
mines int
bDoQuestioned bool
adrawer Func
Результат System

UncoverTile() публичный Метод

public UncoverTile ( int col, int row ) : void
col int
row int
Результат void

isGameOver() публичный Метод

public isGameOver ( ) : bool
Результат bool

wasGameWon() публичный Метод

public wasGameWon ( ) : bool
Результат bool