AIsOfCatan.StartActions.BuildSettlement C# (CSharp) Method

BuildSettlement() public method

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
return void
        public void BuildSettlement(Intersection intersection)
        {
            if (settlementBuilt) throw new IllegalActionException("Only one settlement may be built in a turn during the startup");
            settlementPosition = intersection;
            controller.BuildFirstSettlement(player, intersection);
            settlementBuilt = true;
        }