C# Class Monopoly.RLHandlers.RLEnvironment

Afficher le fichier Open project: pmpailis/RLMonopoly

Méthodes publiques

Свойство Type Description
Awriter System.IO.TextWriter
buildings int[]
chanceCardsPositions int[]
communityChestCardsPositions int[]
completedGroups int[]
currentPlayer int
currentPosition int
doublesInRow int
gameCardsGroup string[]
getOutOfJailTries int[]
groupCardColour SolidColorBrush[]
properties int[]
propertyCardsPosition int[]
specialPositions int[]
stepCounter int
totalGames int

Méthodes publiques

Méthode Description
RLEnvironment ( ) : System
addCard ( PropertyCard pCard ) : void
addCommandCard ( CommandCard pCard ) : void
createEnvInfo ( ) : string
createObservation ( ) : Observation
deleteCard ( PropertyCard pCard ) : void
deleteCommandCard ( CommandCard pCard ) : void
env_cleanup ( ) : void
env_gameIsOver ( ) : bool
env_init ( ) : void
env_selectNextAgent ( ) : void
env_start ( ) : void
getCards ( ) : List
getChanceCardPositions ( ) : int[]
getColour ( string pName ) : SolidColorBrush
getCommandCards ( ) : List
getCommunityCardPositions ( ) : int[]
getMaxActions ( ) : int
getMaxHotels ( ) : int
getMaxHouses ( ) : int
getPlayers ( ) : List
playFirstMoves ( int i ) : void
playGame ( ) : void
setBoard ( Board b ) : void
setCommandCards ( ) : void

Private Methods

Méthode Description
DegreeToRadian ( double angle ) : double
applyCommandCard ( CommandCard commandCard ) : void
biddingWar ( int currentPosition ) : void
calculateReward ( int player ) : double
createArea ( ) : Obs_Area
createFinance ( ) : Obs_Finance
createPosition ( ) : Obs_Position
env_end ( ) : void
findNearestFromGroup ( int p ) : int
getCardFromPosition ( int currentPosition ) : PropertyCard
getIndexFromPosition ( int currentPosition ) : int
getMoneyFromPlayers ( int p ) : void
inJailPosition ( ) : void
initGameParameters ( ) : void
loadAgent ( string path ) : RLAgent
loadNeural ( string path ) : Network
moveChanceCard ( ) : void
moveCommunityChestCard ( ) : void
movePlayer ( int playerToMove ) : void
onCommandCard ( ) : void
onPositionChanged ( ) : void
onSpecialPosition ( ) : void
printInfo ( ) : void
removePlayer ( int id ) : void
shuffle ( List list ) : List
smoothFunction ( double x, double factor ) : double

Method Details

RLEnvironment() public méthode

public RLEnvironment ( ) : System
Résultat System

addCard() public méthode

public addCard ( PropertyCard pCard ) : void
pCard Monopoly.Classes.PropertyCard
Résultat void

addCommandCard() public méthode

public addCommandCard ( CommandCard pCard ) : void
pCard Monopoly.Classes.CommandCard
Résultat void

createEnvInfo() public méthode

public createEnvInfo ( ) : string
Résultat string

createObservation() public méthode

public createObservation ( ) : Observation
Résultat Monopoly.RLClasses.Observation

deleteCard() public méthode

public deleteCard ( PropertyCard pCard ) : void
pCard Monopoly.Classes.PropertyCard
Résultat void

deleteCommandCard() public méthode

public deleteCommandCard ( CommandCard pCard ) : void
pCard Monopoly.Classes.CommandCard
Résultat void

env_cleanup() public méthode

public env_cleanup ( ) : void
Résultat void

env_gameIsOver() public méthode

public env_gameIsOver ( ) : bool
Résultat bool

env_init() public méthode

public env_init ( ) : void
Résultat void

env_selectNextAgent() public méthode

public env_selectNextAgent ( ) : void
Résultat void

env_start() public méthode

public env_start ( ) : void
Résultat void

getCards() public méthode

public getCards ( ) : List
Résultat List

getChanceCardPositions() public méthode

public getChanceCardPositions ( ) : int[]
Résultat int[]

getColour() public méthode

public getColour ( string pName ) : SolidColorBrush
pName string
Résultat SolidColorBrush

getCommandCards() public méthode

public getCommandCards ( ) : List
Résultat List

getCommunityCardPositions() public méthode

public getCommunityCardPositions ( ) : int[]
Résultat int[]

getMaxActions() public méthode

public getMaxActions ( ) : int
Résultat int

getMaxHotels() public méthode

public getMaxHotels ( ) : int
Résultat int

getMaxHouses() public méthode

public getMaxHouses ( ) : int
Résultat int

getPlayers() public méthode

public getPlayers ( ) : List
Résultat List

playFirstMoves() public méthode

public playFirstMoves ( int i ) : void
i int
Résultat void

playGame() public méthode

public playGame ( ) : void
Résultat void

setBoard() public méthode

public setBoard ( Board b ) : void
b Board
Résultat void

setCommandCards() public méthode

public setCommandCards ( ) : void
Résultat void

Property Details

Awriter public_oe property

public TextWriter,System.IO Awriter
Résultat System.IO.TextWriter

buildings public_oe property

public int[] buildings
Résultat int[]

chanceCardsPositions public_oe property

public int[] chanceCardsPositions
Résultat int[]

communityChestCardsPositions public_oe property

public int[] communityChestCardsPositions
Résultat int[]

completedGroups public_oe property

public int[] completedGroups
Résultat int[]

currentPlayer public_oe property

public int currentPlayer
Résultat int

currentPosition public_oe property

public int currentPosition
Résultat int

doublesInRow public_oe property

public int doublesInRow
Résultat int

gameCardsGroup public_oe property

public string[] gameCardsGroup
Résultat string[]

getOutOfJailTries public_oe property

public int[] getOutOfJailTries
Résultat int[]

groupCardColour public_oe static_oe property

public static SolidColorBrush[] groupCardColour
Résultat SolidColorBrush[]

properties public_oe property

public int[] properties
Résultat int[]

propertyCardsPosition public_oe property

public int[] propertyCardsPosition
Résultat int[]

specialPositions public_oe property

public int[] specialPositions
Résultat int[]

stepCounter public_oe property

public int stepCounter
Résultat int

totalGames public_oe property

public int totalGames
Résultat int