C# 클래스 AIsOfCatan.MainActions

상속: IGameActions
파일 보기 프로젝트 열기: rasmusgreve/catan 1 사용 예제들

공개 메소드들

메소드 설명
BuildCity ( Intersection intersection ) : GameState
BuildRoad ( Edge edge ) : GameState
BuildSettlement ( Intersection intersection ) : GameState
DieRoll ( ) : void

Allow the build actions to be called

DrawDevelopmentCard ( ) : GameState
Invalidate ( ) : void

Invalidate this action object making all methods throw IllegalActionExceptions if called

MainActions ( Player player, GameController controller ) : System.Collections.Generic
PlayKnight ( ) : GameState
PlayMonopoly ( Resource resource ) : GameState
PlayRoadBuilding ( Edge firstEdge, Edge secondEdge ) : GameState
PlayYearOfPlenty ( Resource resource1, Resource resource2 ) : GameState
ProposeTrade ( List give, List take ) : ITrade>.Dictionary
Trade ( int otherPlayer ) : GameState
TradeBank ( Resource giving, Resource receiving ) : GameState

메소드 상세

BuildCity() 공개 메소드

public BuildCity ( Intersection intersection ) : GameState
intersection AIsOfCatan.API.Intersection
리턴 GameState

BuildRoad() 공개 메소드

public BuildRoad ( Edge edge ) : GameState
edge AIsOfCatan.API.Edge
리턴 GameState

BuildSettlement() 공개 메소드

public BuildSettlement ( Intersection intersection ) : GameState
intersection AIsOfCatan.API.Intersection
리턴 GameState

DieRoll() 공개 메소드

Allow the build actions to be called
public DieRoll ( ) : void
리턴 void

DrawDevelopmentCard() 공개 메소드

public DrawDevelopmentCard ( ) : GameState
리턴 GameState

Invalidate() 공개 메소드

Invalidate this action object making all methods throw IllegalActionExceptions if called
public Invalidate ( ) : void
리턴 void

MainActions() 공개 메소드

public MainActions ( Player player, GameController controller ) : System.Collections.Generic
player Player
controller GameController
리턴 System.Collections.Generic

PlayKnight() 공개 메소드

public PlayKnight ( ) : GameState
리턴 GameState

PlayMonopoly() 공개 메소드

public PlayMonopoly ( Resource resource ) : GameState
resource Resource
리턴 GameState

PlayRoadBuilding() 공개 메소드

public PlayRoadBuilding ( Edge firstEdge, Edge secondEdge ) : GameState
firstEdge AIsOfCatan.API.Edge
secondEdge AIsOfCatan.API.Edge
리턴 GameState

PlayYearOfPlenty() 공개 메소드

public PlayYearOfPlenty ( Resource resource1, Resource resource2 ) : GameState
resource1 Resource
resource2 Resource
리턴 GameState

ProposeTrade() 공개 메소드

public ProposeTrade ( List give, List take ) : ITrade>.Dictionary
give List
take List
리턴 ITrade>.Dictionary

Trade() 공개 메소드

public Trade ( int otherPlayer ) : GameState
otherPlayer int
리턴 GameState

TradeBank() 공개 메소드

public TradeBank ( Resource giving, Resource receiving ) : GameState
giving Resource
receiving Resource
리턴 GameState