C# Class AIsOfCatan.MainActions

Inheritance: IGameActions
Show file Open project: rasmusgreve/catan Class Usage Examples

Public Methods

Method Description
BuildCity ( Intersection intersection ) : GameState
BuildRoad ( Edge edge ) : GameState
BuildSettlement ( Intersection intersection ) : GameState
DieRoll ( ) : void

Allow the build actions to be called

DrawDevelopmentCard ( ) : GameState
Invalidate ( ) : void

Invalidate this action object making all methods throw IllegalActionExceptions if called

MainActions ( Player player, GameController controller ) : System.Collections.Generic
PlayKnight ( ) : GameState
PlayMonopoly ( Resource resource ) : GameState
PlayRoadBuilding ( Edge firstEdge, Edge secondEdge ) : GameState
PlayYearOfPlenty ( Resource resource1, Resource resource2 ) : GameState
ProposeTrade ( List give, List take ) : ITrade>.Dictionary
Trade ( int otherPlayer ) : GameState
TradeBank ( Resource giving, Resource receiving ) : GameState

Method Details

BuildCity() public method

public BuildCity ( Intersection intersection ) : GameState
intersection AIsOfCatan.API.Intersection
return GameState

BuildRoad() public method

public BuildRoad ( Edge edge ) : GameState
edge AIsOfCatan.API.Edge
return GameState

BuildSettlement() public method

public BuildSettlement ( Intersection intersection ) : GameState
intersection AIsOfCatan.API.Intersection
return GameState

DieRoll() public method

Allow the build actions to be called
public DieRoll ( ) : void
return void

DrawDevelopmentCard() public method

public DrawDevelopmentCard ( ) : GameState
return GameState

Invalidate() public method

Invalidate this action object making all methods throw IllegalActionExceptions if called
public Invalidate ( ) : void
return void

MainActions() public method

public MainActions ( Player player, GameController controller ) : System.Collections.Generic
player Player
controller GameController
return System.Collections.Generic

PlayKnight() public method

public PlayKnight ( ) : GameState
return GameState

PlayMonopoly() public method

public PlayMonopoly ( Resource resource ) : GameState
resource Resource
return GameState

PlayRoadBuilding() public method

public PlayRoadBuilding ( Edge firstEdge, Edge secondEdge ) : GameState
firstEdge AIsOfCatan.API.Edge
secondEdge AIsOfCatan.API.Edge
return GameState

PlayYearOfPlenty() public method

public PlayYearOfPlenty ( Resource resource1, Resource resource2 ) : GameState
resource1 Resource
resource2 Resource
return GameState

ProposeTrade() public method

public ProposeTrade ( List give, List take ) : ITrade>.Dictionary
give List
take List
return ITrade>.Dictionary

Trade() public method

public Trade ( int otherPlayer ) : GameState
otherPlayer int
return GameState

TradeBank() public method

public TradeBank ( Resource giving, Resource receiving ) : GameState
giving Resource
receiving Resource
return GameState