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

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

public PlayKnight ( ) : GameState
Результат GameState
        public GameState PlayKnight()
        {
            if (!valid) throw new IllegalActionException("Tried to perform an action on an invalid GameAction");
            if (hasPlayedDevCard)
                throw new IllegalActionException("Max one development card can be played each turn");
            hasPlayedDevCard = true;
            return controller.PlayKnight(player);
        }