C# Class MBC.Controllers.DaveBot_1_4_5.ProbabilityMap

Afficher le fichier Open project: aiclub/Mohawk_Battleship Class Usage Examples

Méthodes publiques

Свойство Type Description
map int[][]

Protected Properties

Свойство Type Description
cellStateMap CellStateMap
shipLengths int[]
size int
weighted int

Méthodes publiques

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

Méthodes protégées

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

Method Details

ProbabilityMap() public méthode

public ProbabilityMap ( int size, int shipLengths, CellStateMap cellStateMap ) : System
size int
shipLengths int
cellStateMap CellStateMap
Résultat System

addProbabilitiy() protected méthode

protected addProbabilitiy ( Coordinates startPoint, List coordList, int maxLength ) : void
startPoint Coordinates
coordList List
maxLength int
Résultat void

decrement() public méthode

public decrement ( Coordinates coords ) : void
coords Coordinates
Résultat void

decrement() public méthode

public decrement ( Coordinates coords, int amount ) : void
coords Coordinates
amount int
Résultat void

decrement() public méthode

public decrement ( int x, int y ) : void
x int
y int
Résultat void

decrement() public méthode

public decrement ( int x, int y, int amount ) : void
x int
y int
amount int
Résultat void

getHighest() public méthode

public getHighest ( ) : Coordinates
Résultat Coordinates

getValue() public méthode

public getValue ( Coordinates coords ) : int
coords Coordinates
Résultat int

getValue() public méthode

public getValue ( int x, int y ) : int
x int
y int
Résultat int

howManyFree() protected méthode

protected howManyFree ( List coords ) : int
coords List
Résultat int

increment() public méthode

public increment ( Coordinates coords ) : void
coords Coordinates
Résultat void

increment() public méthode

public increment ( Coordinates coords, int amount ) : void
coords Coordinates
amount int
Résultat void

increment() public méthode

public increment ( int x, int y ) : void
x int
y int
Résultat void

increment() public méthode

public increment ( int x, int y, int amount ) : void
x int
y int
amount int
Résultat void

operator() public static méthode

public static operator ( ) : ProbabilityMap
Résultat ProbabilityMap

removeProbabilitiy() protected méthode

protected removeProbabilitiy ( List coordList, int maxLength ) : void
coordList List
maxLength int
Résultat void

reset() public méthode

public reset ( ) : void
Résultat void

setValue() public méthode

public setValue ( Coordinates coords, int val ) : void
coords Coordinates
val int
Résultat void

setValue() public méthode

public setValue ( int x, int y, int val ) : void
x int
y int
val int
Résultat void

Property Details

cellStateMap protected_oe property

protected CellStateMap,MBC.Controllers.DaveBot_1_4_5 cellStateMap
Résultat CellStateMap

map public_oe property

public int[][] map
Résultat int[][]

shipLengths protected_oe property

protected int[] shipLengths
Résultat int[]

size protected_oe property

protected int size
Résultat int

weighted protected_oe property

protected int weighted
Résultat int