C# Class Minesweeper.MineSweeperGame

Afficher le fichier Open project: NashXam/minesweeper Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

FlagTile() public méthode

public FlagTile ( int col, int row ) : void
col int
row int
Résultat void

ForceRedraw() public méthode

public ForceRedraw ( ) : void
Résultat void

GetCurrentScore() public méthode

public GetCurrentScore ( ) : int
Résultat int

GetDrawType() public méthode

public GetDrawType ( int col, int row ) : DrawType
col int
row int
Résultat DrawType

GetTileValue() public méthode

public GetTileValue ( int col, int row ) : int
col int
row int
Résultat int

MineSweeperGame() public méthode

public MineSweeperGame ( int columns, int rows, int mines, bool bDoQuestioned, Func adrawer ) : System
columns int
rows int
mines int
bDoQuestioned bool
adrawer Func
Résultat System

UncoverTile() public méthode

public UncoverTile ( int col, int row ) : void
col int
row int
Résultat void

isGameOver() public méthode

public isGameOver ( ) : bool
Résultat bool

wasGameWon() public méthode

public wasGameWon ( ) : bool
Résultat bool