C# Класс AIsOfCatan.MainActions

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

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

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