C# Class MBC.Controllers.DaveBot_1_4_5.ProbabilityMap

Mostra file Open project: aiclub/Mohawk_Battleship Class Usage Examples

Public Properties

Property Type Description
map int[][]

Protected Properties

Property Type Description
cellStateMap CellStateMap
shipLengths int[]
size int
weighted int

Public Methods

Method Description
ProbabilityMap ( int size, int shipLengths, CellStateMap cellStateMap ) : System
decrement ( Coordinates coords ) : void
decrement ( Coordinates coords, int amount ) : void
decrement ( int x, int y ) : void
decrement ( int x, int y, int amount ) : void
getHighest ( ) : Coordinates
getValue ( Coordinates coords ) : int
getValue ( int x, int y ) : int
increment ( Coordinates coords ) : void
increment ( Coordinates coords, int amount ) : void
increment ( int x, int y ) : void
increment ( int x, int y, int amount ) : void
operator ( ) : ProbabilityMap
reset ( ) : void
setValue ( Coordinates coords, int val ) : void
setValue ( int x, int y, int val ) : void

Protected Methods

Method Description
addProbabilitiy ( Coordinates startPoint, List coordList, int maxLength ) : void
howManyFree ( List coords ) : int
removeProbabilitiy ( List coordList, int maxLength ) : void

Method Details

ProbabilityMap() public method

public ProbabilityMap ( int size, int shipLengths, CellStateMap cellStateMap ) : System
size int
shipLengths int
cellStateMap CellStateMap
return System

addProbabilitiy() protected method

protected addProbabilitiy ( Coordinates startPoint, List coordList, int maxLength ) : void
startPoint Coordinates
coordList List
maxLength int
return void

decrement() public method

public decrement ( Coordinates coords ) : void
coords Coordinates
return void

decrement() public method

public decrement ( Coordinates coords, int amount ) : void
coords Coordinates
amount int
return void

decrement() public method

public decrement ( int x, int y ) : void
x int
y int
return void

decrement() public method

public decrement ( int x, int y, int amount ) : void
x int
y int
amount int
return void

getHighest() public method

public getHighest ( ) : Coordinates
return Coordinates

getValue() public method

public getValue ( Coordinates coords ) : int
coords Coordinates
return int

getValue() public method

public getValue ( int x, int y ) : int
x int
y int
return int

howManyFree() protected method

protected howManyFree ( List coords ) : int
coords List
return int

increment() public method

public increment ( Coordinates coords ) : void
coords Coordinates
return void

increment() public method

public increment ( Coordinates coords, int amount ) : void
coords Coordinates
amount int
return void

increment() public method

public increment ( int x, int y ) : void
x int
y int
return void

increment() public method

public increment ( int x, int y, int amount ) : void
x int
y int
amount int
return void

operator() public static method

public static operator ( ) : ProbabilityMap
return ProbabilityMap

removeProbabilitiy() protected method

protected removeProbabilitiy ( List coordList, int maxLength ) : void
coordList List
maxLength int
return void

reset() public method

public reset ( ) : void
return void

setValue() public method

public setValue ( Coordinates coords, int val ) : void
coords Coordinates
val int
return void

setValue() public method

public setValue ( int x, int y, int val ) : void
x int
y int
val int
return void

Property Details

cellStateMap protected_oe property

protected CellStateMap,MBC.Controllers.DaveBot_1_4_5 cellStateMap
return CellStateMap

map public_oe property

public int[][] map
return int[][]

shipLengths protected_oe property

protected int[] shipLengths
return int[]

size protected_oe property

protected int size
return int

weighted protected_oe property

protected int weighted
return int