C# 클래스 AIsOfCatan.StartActions

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

공개 메소드들

메소드 설명
BuildRoad ( Edge edge ) : void

Build a road on the board If you try to build at a position not connected to the newly placed settlement an IllegalBuildPositionException is thrown If you try to build more than one road an IllegalActionException is thrown

BuildSettlement ( Intersection intersection ) : void

Build a settlement on the board If you try to build too close to another building a IllegalBuildPosition is thrown Must be called before BuildRoad, otherwise an IllegalActionException is thrown

GetRoadPosition ( ) : Edge

Internal method used for handing out resources

GetSettlementPosition ( ) : Intersection

Internal method used for handing out resources

IsComplete ( ) : bool

Returns whether the start action has been completed

StartActions ( Player player, GameController controller ) : System.Linq

메소드 상세

BuildRoad() 공개 메소드

Build a road on the board If you try to build at a position not connected to the newly placed settlement an IllegalBuildPositionException is thrown If you try to build more than one road an IllegalActionException is thrown
public BuildRoad ( Edge edge ) : void
edge AIsOfCatan.API.Edge
리턴 void

BuildSettlement() 공개 메소드

Build a settlement on the board If you try to build too close to another building a IllegalBuildPosition is thrown Must be called before BuildRoad, otherwise an IllegalActionException is thrown
public BuildSettlement ( Intersection intersection ) : void
intersection AIsOfCatan.API.Intersection
리턴 void

GetRoadPosition() 공개 메소드

Internal method used for handing out resources
public GetRoadPosition ( ) : Edge
리턴 AIsOfCatan.API.Edge

GetSettlementPosition() 공개 메소드

Internal method used for handing out resources
public GetSettlementPosition ( ) : Intersection
리턴 AIsOfCatan.API.Intersection

IsComplete() 공개 메소드

Returns whether the start action has been completed
public IsComplete ( ) : bool
리턴 bool

StartActions() 공개 메소드

public StartActions ( Player player, GameController controller ) : System.Linq
player Player
controller GameController
리턴 System.Linq