C# Class AIsOfCatan.DebugAgent

Inheritance: IAgent
Afficher le fichier Open project: rasmusgreve/catan

Méthodes publiques

Méthode Description
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

Method Details

BeforeDiceRoll() public méthode

public BeforeDiceRoll ( IGameState state, IGameActions actions ) : void
state IGameState
actions IGameActions
Résultat void

ChoosePlayerToDrawFrom() public méthode

public ChoosePlayerToDrawFrom ( IGameState state, int validOpponents ) : int
state IGameState
validOpponents int
Résultat int

DiscardCards() public méthode

public DiscardCards ( IGameState state, int toDiscard ) : Resource[]
state IGameState
toDiscard int
Résultat Resource[]

GetDescription() public méthode

public GetDescription ( ) : string
Résultat string

GetName() public méthode

public GetName ( ) : string
Résultat string

HandleTrade() public méthode

public HandleTrade ( IGameState state, ITrade offer, int proposingPlayerId ) : ITrade
state IGameState
offer ITrade
proposingPlayerId int
Résultat ITrade

MoveRobber() public méthode

public MoveRobber ( IGameState state ) : int
state IGameState
Résultat int

PerformTurn() public méthode

public PerformTurn ( IGameState state, IGameActions actions ) : void
state IGameState
actions IGameActions
Résultat void

PlaceStart() public méthode

public PlaceStart ( IGameState state, IStartActions actions ) : void
state IGameState
actions IStartActions
Résultat void

Reset() public méthode

public Reset ( int assignedId ) : void
assignedId int
Résultat void