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