C# Class MineSweeper.CellAroundMethod

Mostrar archivo Open project: Confirmit/Students

Protected Properties

Property Type Description
Height int

Public Methods

Method Description
CellAroundMethod ( int height, int width ) : System
CellCalculation ( Cell currentCell ) : void

Protected Methods

Method Description
Condition ( Cell currentCell, Cell neighbourCell ) : bool
ConditionalAction ( Cell currentCell, Cell neighbourCell ) : void
NeedCheckNeighbors ( Cell currentCell ) : bool
UnconditionalAction ( Cell currentCell ) : void

Method Details

CellAroundMethod() public method

public CellAroundMethod ( int height, int width ) : System
height int
width int
return System

CellCalculation() public method

public CellCalculation ( Cell currentCell ) : void
currentCell Cell
return void

Condition() protected abstract method

protected abstract Condition ( Cell currentCell, Cell neighbourCell ) : bool
currentCell Cell
neighbourCell Cell
return bool

ConditionalAction() protected abstract method

protected abstract ConditionalAction ( Cell currentCell, Cell neighbourCell ) : void
currentCell Cell
neighbourCell Cell
return void

NeedCheckNeighbors() protected abstract method

protected abstract NeedCheckNeighbors ( Cell currentCell ) : bool
currentCell Cell
return bool

UnconditionalAction() protected abstract method

protected abstract UnconditionalAction ( Cell currentCell ) : void
currentCell Cell
return void

Property Details

Height protected_oe property

protected int Height
return int