C# Class AIsOfCatan.MainActions

Inheritance: IGameActions
Afficher le fichier Open project: rasmusgreve/catan Class Usage Examples

Méthodes publiques

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

public BuildCity ( Intersection intersection ) : GameState
intersection AIsOfCatan.API.Intersection
Résultat GameState

BuildRoad() public méthode

public BuildRoad ( Edge edge ) : GameState
edge AIsOfCatan.API.Edge
Résultat GameState

BuildSettlement() public méthode

public BuildSettlement ( Intersection intersection ) : GameState
intersection AIsOfCatan.API.Intersection
Résultat GameState

DieRoll() public méthode

Allow the build actions to be called
public DieRoll ( ) : void
Résultat void

DrawDevelopmentCard() public méthode

public DrawDevelopmentCard ( ) : GameState
Résultat GameState

Invalidate() public méthode

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

MainActions() public méthode

public MainActions ( Player player, GameController controller ) : System.Collections.Generic
player Player
controller GameController
Résultat System.Collections.Generic

PlayKnight() public méthode

public PlayKnight ( ) : GameState
Résultat GameState

PlayMonopoly() public méthode

public PlayMonopoly ( Resource resource ) : GameState
resource Resource
Résultat GameState

PlayRoadBuilding() public méthode

public PlayRoadBuilding ( Edge firstEdge, Edge secondEdge ) : GameState
firstEdge AIsOfCatan.API.Edge
secondEdge AIsOfCatan.API.Edge
Résultat GameState

PlayYearOfPlenty() public méthode

public PlayYearOfPlenty ( Resource resource1, Resource resource2 ) : GameState
resource1 Resource
resource2 Resource
Résultat GameState

ProposeTrade() public méthode

public ProposeTrade ( List give, List take ) : ITrade>.Dictionary
give List
take List
Résultat ITrade>.Dictionary

Trade() public méthode

public Trade ( int otherPlayer ) : GameState
otherPlayer int
Résultat GameState

TradeBank() public méthode

public TradeBank ( Resource giving, Resource receiving ) : GameState
giving Resource
receiving Resource
Résultat GameState