AIsOfCatan.MainActions.BuildCity C# (CSharp) Method

BuildCity() public method

public BuildCity ( Intersection intersection ) : GameState
intersection AIsOfCatan.API.Intersection
return GameState
        public GameState BuildCity(Intersection intersection)
        {
            if (!valid) throw new IllegalActionException("Tried to perform an action on an invalid GameAction");
            if (!isAfterDieRoll) throw new IllegalActionException("Tried to build before the die roll");
            return controller.BuildCity(player, intersection);
        }