C# Класс AIsOfCatan.HumanAgent

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

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

Метод Описание
BeforeDiceRoll ( IGameState state, IGameActions actions ) : void
ChoosePlayerToDrawFrom ( IGameState state, int validOpponents ) : int
DiscardCards ( IGameState state, int toDiscard ) : Resource[]
GetDescription ( ) : string
GetName ( ) : string
HandleTrade ( IGameState state, ITrade offer, int proposingPlayerId ) : ITrade
MoveRobber ( IGameState state ) : int
PerformTurn ( IGameState state, IGameActions actions ) : void
PlaceStart ( IGameState state, IStartActions actions ) : void
Reset ( int assignedId ) : void

Приватные методы

Метод Описание
PlayDevelopmentCard ( IGameState state, IGameActions actions ) : IGameState
TradePrice ( IBoard board, Resource giving ) : int
getCityPosition ( ) : Intersection
getRoadPosition ( ) : Edge
getSettlementPosition ( ) : Intersection
hasRes ( IGameState state, Resource res, int amount = 1 ) : bool
selectResource ( Resource resources = null ) : Resource
selectResourceTradeBank ( IBoard board, Resource resources = null ) : Resource

Описание методов

BeforeDiceRoll() публичный Метод

public BeforeDiceRoll ( IGameState state, IGameActions actions ) : void
state IGameState
actions IGameActions
Результат void

ChoosePlayerToDrawFrom() публичный Метод

public ChoosePlayerToDrawFrom ( IGameState state, int validOpponents ) : int
state IGameState
validOpponents int
Результат int

DiscardCards() публичный Метод

public DiscardCards ( IGameState state, int toDiscard ) : Resource[]
state IGameState
toDiscard int
Результат Resource[]

GetDescription() публичный Метод

public GetDescription ( ) : string
Результат string

GetName() публичный Метод

public GetName ( ) : string
Результат string

HandleTrade() публичный Метод

public HandleTrade ( IGameState state, ITrade offer, int proposingPlayerId ) : ITrade
state IGameState
offer ITrade
proposingPlayerId int
Результат ITrade

MoveRobber() публичный Метод

public MoveRobber ( IGameState state ) : int
state IGameState
Результат int

PerformTurn() публичный Метод

public PerformTurn ( IGameState state, IGameActions actions ) : void
state IGameState
actions IGameActions
Результат void

PlaceStart() публичный Метод

public PlaceStart ( IGameState state, IStartActions actions ) : void
state IGameState
actions IStartActions
Результат void

Reset() публичный Метод

public Reset ( int assignedId ) : void
assignedId int
Результат void