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

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

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