C# Class MBC.Controllers.DaveBot_1_4_5.CellStateMap

Mostrar archivo Open project: aiclub/Mohawk_Battleship Class Usage Examples

Public Properties

Property Type Description
map cellState[][]

Protected Properties

Property Type Description
size int

Public Methods

Method Description
CellStateMap ( int size ) : System
getState ( Coordinates coords ) : cellState
getState ( int x, int y ) : cellState
reset ( ) : void
setState ( Coordinates coords, cellState state ) : void
setState ( int x, int y, cellState state ) : void

Method Details

CellStateMap() public method

public CellStateMap ( int size ) : System
size int
return System

getState() public method

public getState ( Coordinates coords ) : cellState
coords Coordinates
return cellState

getState() public method

public getState ( int x, int y ) : cellState
x int
y int
return cellState

reset() public method

public reset ( ) : void
return void

setState() public method

public setState ( Coordinates coords, cellState state ) : void
coords Coordinates
state cellState
return void

setState() public method

public setState ( int x, int y, cellState state ) : void
x int
y int
state cellState
return void

Property Details

map public_oe property

public cellState[][] map
return cellState[][]

size protected_oe property

protected int size
return int