C# Класс AIsOfCatan.StartActions

Наследование: IStartActions
Показать файл Открыть проект Примеры использования класса

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

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