C# Класс Monopoly.RLHandlers.RLEnvironment

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

RLEnvironment() публичный Метод

public RLEnvironment ( ) : System
Результат System

addCard() публичный Метод

public addCard ( PropertyCard pCard ) : void
pCard Monopoly.Classes.PropertyCard
Результат void

addCommandCard() публичный Метод

public addCommandCard ( CommandCard pCard ) : void
pCard Monopoly.Classes.CommandCard
Результат void

createEnvInfo() публичный Метод

public createEnvInfo ( ) : string
Результат string

createObservation() публичный Метод

public createObservation ( ) : Observation
Результат Monopoly.RLClasses.Observation

deleteCard() публичный Метод

public deleteCard ( PropertyCard pCard ) : void
pCard Monopoly.Classes.PropertyCard
Результат void

deleteCommandCard() публичный Метод

public deleteCommandCard ( CommandCard pCard ) : void
pCard Monopoly.Classes.CommandCard
Результат void

env_cleanup() публичный Метод

public env_cleanup ( ) : void
Результат void

env_gameIsOver() публичный Метод

public env_gameIsOver ( ) : bool
Результат bool

env_init() публичный Метод

public env_init ( ) : void
Результат void

env_selectNextAgent() публичный Метод

public env_selectNextAgent ( ) : void
Результат void

env_start() публичный Метод

public env_start ( ) : void
Результат void

getCards() публичный Метод

public getCards ( ) : List
Результат List

getChanceCardPositions() публичный Метод

public getChanceCardPositions ( ) : int[]
Результат int[]

getColour() публичный Метод

public getColour ( string pName ) : SolidColorBrush
pName string
Результат SolidColorBrush

getCommandCards() публичный Метод

public getCommandCards ( ) : List
Результат List

getCommunityCardPositions() публичный Метод

public getCommunityCardPositions ( ) : int[]
Результат int[]

getMaxActions() публичный Метод

public getMaxActions ( ) : int
Результат int

getMaxHotels() публичный Метод

public getMaxHotels ( ) : int
Результат int

getMaxHouses() публичный Метод

public getMaxHouses ( ) : int
Результат int

getPlayers() публичный Метод

public getPlayers ( ) : List
Результат List

playFirstMoves() публичный Метод

public playFirstMoves ( int i ) : void
i int
Результат void

playGame() публичный Метод

public playGame ( ) : void
Результат void

setBoard() публичный Метод

public setBoard ( Board b ) : void
b Board
Результат void

setCommandCards() публичный Метод

public setCommandCards ( ) : void
Результат void

Описание свойств

Awriter публичное свойство

public TextWriter,System.IO Awriter
Результат System.IO.TextWriter

buildings публичное свойство

public int[] buildings
Результат int[]

chanceCardsPositions публичное свойство

public int[] chanceCardsPositions
Результат int[]

communityChestCardsPositions публичное свойство

public int[] communityChestCardsPositions
Результат int[]

completedGroups публичное свойство

public int[] completedGroups
Результат int[]

currentPlayer публичное свойство

public int currentPlayer
Результат int

currentPosition публичное свойство

public int currentPosition
Результат int

doublesInRow публичное свойство

public int doublesInRow
Результат int

gameCardsGroup публичное свойство

public string[] gameCardsGroup
Результат string[]

getOutOfJailTries публичное свойство

public int[] getOutOfJailTries
Результат int[]

groupCardColour публичное статическое свойство

public static SolidColorBrush[] groupCardColour
Результат SolidColorBrush[]

properties публичное свойство

public int[] properties
Результат int[]

propertyCardsPosition публичное свойство

public int[] propertyCardsPosition
Результат int[]

specialPositions публичное свойство

public int[] specialPositions
Результат int[]

stepCounter публичное свойство

public int stepCounter
Результат int

totalGames публичное свойство

public int totalGames
Результат int