C# Class AIsOfCatan.DebugAgent

Inheritance: IAgent
Mostrar archivo Open project: rasmusgreve/catan

Public Methods

Method 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 method

public BeforeDiceRoll ( IGameState state, IGameActions actions ) : void
state IGameState
actions IGameActions
return void

ChoosePlayerToDrawFrom() public method

public ChoosePlayerToDrawFrom ( IGameState state, int validOpponents ) : int
state IGameState
validOpponents int
return int

DiscardCards() public method

public DiscardCards ( IGameState state, int toDiscard ) : Resource[]
state IGameState
toDiscard int
return Resource[]

GetDescription() public method

public GetDescription ( ) : string
return string

GetName() public method

public GetName ( ) : string
return string

HandleTrade() public method

public HandleTrade ( IGameState state, ITrade offer, int proposingPlayerId ) : ITrade
state IGameState
offer ITrade
proposingPlayerId int
return ITrade

MoveRobber() public method

public MoveRobber ( IGameState state ) : int
state IGameState
return int

PerformTurn() public method

public PerformTurn ( IGameState state, IGameActions actions ) : void
state IGameState
actions IGameActions
return void

PlaceStart() public method

public PlaceStart ( IGameState state, IStartActions actions ) : void
state IGameState
actions IStartActions
return void

Reset() public method

public Reset ( int assignedId ) : void
assignedId int
return void