AIsOfCatan.MainActions.BuildSettlement C# (CSharp) Метод

BuildSettlement() публичный Метод

public BuildSettlement ( Intersection intersection ) : GameState
intersection AIsOfCatan.API.Intersection
Результат GameState
        public GameState BuildSettlement(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.BuildSettlement(player, intersection);
        }