C# Class Minesweeper.MineSweeperGame

ファイルを表示 Open project: NashXam/minesweeper Class Usage Examples

Public Methods

Method 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

Method 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 method

public FlagTile ( int col, int row ) : void
col int
row int
return void

ForceRedraw() public method

public ForceRedraw ( ) : void
return void

GetCurrentScore() public method

public GetCurrentScore ( ) : int
return int

GetDrawType() public method

public GetDrawType ( int col, int row ) : DrawType
col int
row int
return DrawType

GetTileValue() public method

public GetTileValue ( int col, int row ) : int
col int
row int
return int

MineSweeperGame() public method

public MineSweeperGame ( int columns, int rows, int mines, bool bDoQuestioned, Func adrawer ) : System
columns int
rows int
mines int
bDoQuestioned bool
adrawer Func
return System

UncoverTile() public method

public UncoverTile ( int col, int row ) : void
col int
row int
return void

isGameOver() public method

public isGameOver ( ) : bool
return bool

wasGameWon() public method

public wasGameWon ( ) : bool
return bool