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

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

public TradeBank ( Resource giving, Resource receiving ) : GameState
giving Resource
receiving Resource
Результат GameState
        public GameState TradeBank(Resource giving, Resource receiving)
        {
            if (!valid) throw new IllegalActionException("Tried to trade on an invalid GameAction");
            if (!isAfterDieRoll) throw new IllegalActionException("Tried to trade before the die roll");
            return controller.TradeBank(player, giving, receiving);
        }