C# Класс AIsOfCatan.StarterAgent

Наследование: 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

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

Метод Описание
Chances ( int roll ) : int
DifferentTypes ( Intersection inter, IBoard board ) : int
FindBestIntersection ( IEnumerable enumerable, IBoard board ) : Intersection
FindBestRoad ( IEnumerable edges, IBoard board ) : Edge
FindBestRoad ( Intersection from, IBoard board ) : Edge
GetEdgeBetween ( Intersection first, Intersection second ) : Edge
GetEnds ( Intersection inter, IBoard board ) : IEnumerable
GetScore ( Edge e, IBoard board ) : double
GetScore ( Intersection inter, IBoard board ) : int
OpponentTileValue ( int tile, IBoard board ) : int
OwnTileValue ( int tile, IBoard board ) : int

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

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