C# Class Monopoly.RLHandlers.RLEnvironment

ファイルを表示 Open project: pmpailis/RLMonopoly

Public Properties

Property 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

Public Methods

Method 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

Method 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 method

public RLEnvironment ( ) : System
return System

addCard() public method

public addCard ( PropertyCard pCard ) : void
pCard Monopoly.Classes.PropertyCard
return void

addCommandCard() public method

public addCommandCard ( CommandCard pCard ) : void
pCard Monopoly.Classes.CommandCard
return void

createEnvInfo() public method

public createEnvInfo ( ) : string
return string

createObservation() public method

public createObservation ( ) : Observation
return Monopoly.RLClasses.Observation

deleteCard() public method

public deleteCard ( PropertyCard pCard ) : void
pCard Monopoly.Classes.PropertyCard
return void

deleteCommandCard() public method

public deleteCommandCard ( CommandCard pCard ) : void
pCard Monopoly.Classes.CommandCard
return void

env_cleanup() public method

public env_cleanup ( ) : void
return void

env_gameIsOver() public method

public env_gameIsOver ( ) : bool
return bool

env_init() public method

public env_init ( ) : void
return void

env_selectNextAgent() public method

public env_selectNextAgent ( ) : void
return void

env_start() public method

public env_start ( ) : void
return void

getCards() public method

public getCards ( ) : List
return List

getChanceCardPositions() public method

public getChanceCardPositions ( ) : int[]
return int[]

getColour() public method

public getColour ( string pName ) : SolidColorBrush
pName string
return SolidColorBrush

getCommandCards() public method

public getCommandCards ( ) : List
return List

getCommunityCardPositions() public method

public getCommunityCardPositions ( ) : int[]
return int[]

getMaxActions() public method

public getMaxActions ( ) : int
return int

getMaxHotels() public method

public getMaxHotels ( ) : int
return int

getMaxHouses() public method

public getMaxHouses ( ) : int
return int

getPlayers() public method

public getPlayers ( ) : List
return List

playFirstMoves() public method

public playFirstMoves ( int i ) : void
i int
return void

playGame() public method

public playGame ( ) : void
return void

setBoard() public method

public setBoard ( Board b ) : void
b Board
return void

setCommandCards() public method

public setCommandCards ( ) : void
return void

Property Details

Awriter public_oe property

public TextWriter,System.IO Awriter
return System.IO.TextWriter

buildings public_oe property

public int[] buildings
return int[]

chanceCardsPositions public_oe property

public int[] chanceCardsPositions
return int[]

communityChestCardsPositions public_oe property

public int[] communityChestCardsPositions
return int[]

completedGroups public_oe property

public int[] completedGroups
return int[]

currentPlayer public_oe property

public int currentPlayer
return int

currentPosition public_oe property

public int currentPosition
return int

doublesInRow public_oe property

public int doublesInRow
return int

gameCardsGroup public_oe property

public string[] gameCardsGroup
return string[]

getOutOfJailTries public_oe property

public int[] getOutOfJailTries
return int[]

groupCardColour public_oe static_oe property

public static SolidColorBrush[] groupCardColour
return SolidColorBrush[]

properties public_oe property

public int[] properties
return int[]

propertyCardsPosition public_oe property

public int[] propertyCardsPosition
return int[]

specialPositions public_oe property

public int[] specialPositions
return int[]

stepCounter public_oe property

public int stepCounter
return int

totalGames public_oe property

public int totalGames
return int