Пример #1
0
    public void TradeAsset(Asset a, Investigator previousOwner)
    {
        Investigator i1 = App.Model.tradeModel.investigator1;
        Investigator i2 = App.Model.tradeModel.investigator2;

        if (previousOwner.investigatorName == i1.investigatorName)
        {
            // i2 gains asset
            i1.TradeAsset(a, false);
            i2.TradeAsset(a, true);
        }
        else
        {
            // i1 gains asset
            i2.TradeAsset(a, false);
            i1.TradeAsset(a, true);
        }
        App.View.tradeView.TradeMade();
    }