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

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

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