C# 클래스 Monopoly.RLHandlers.RLEnvironment

파일 보기 프로젝트 열기: pmpailis/RLMonopoly

공개 프로퍼티들

프로퍼티 타입 설명
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