C# Class AIsOfCatan.StartActions

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

Méthodes publiques

Méthode Description
BuildRoad ( Edge edge ) : void

Build a road on the board If you try to build at a position not connected to the newly placed settlement an IllegalBuildPositionException is thrown If you try to build more than one road an IllegalActionException is thrown

BuildSettlement ( Intersection intersection ) : void

Build a settlement on the board If you try to build too close to another building a IllegalBuildPosition is thrown Must be called before BuildRoad, otherwise an IllegalActionException is thrown

GetRoadPosition ( ) : Edge

Internal method used for handing out resources

GetSettlementPosition ( ) : Intersection

Internal method used for handing out resources

IsComplete ( ) : bool

Returns whether the start action has been completed

StartActions ( Player player, GameController controller ) : System.Linq

Method Details

BuildRoad() public méthode

Build a road on the board If you try to build at a position not connected to the newly placed settlement an IllegalBuildPositionException is thrown If you try to build more than one road an IllegalActionException is thrown
public BuildRoad ( Edge edge ) : void
edge AIsOfCatan.API.Edge
Résultat void

BuildSettlement() public méthode

Build a settlement on the board If you try to build too close to another building a IllegalBuildPosition is thrown Must be called before BuildRoad, otherwise an IllegalActionException is thrown
public BuildSettlement ( Intersection intersection ) : void
intersection AIsOfCatan.API.Intersection
Résultat void

GetRoadPosition() public méthode

Internal method used for handing out resources
public GetRoadPosition ( ) : Edge
Résultat AIsOfCatan.API.Edge

GetSettlementPosition() public méthode

Internal method used for handing out resources
public GetSettlementPosition ( ) : Intersection
Résultat AIsOfCatan.API.Intersection

IsComplete() public méthode

Returns whether the start action has been completed
public IsComplete ( ) : bool
Résultat bool

StartActions() public méthode

public StartActions ( Player player, GameController controller ) : System.Linq
player Player
controller GameController
Résultat System.Linq