Ejemplo n.º 1
0
    public void TradeFocusToken(Investigator previousOwner)
    {
        Investigator i1 = App.Model.tradeModel.investigator1;
        Investigator i2 = App.Model.tradeModel.investigator2;

        if (previousOwner.investigatorName == i1.investigatorName)
        {
            // investigator2 gains ticket
            if (i2.focusTokens == 2)
            {
                return;
            }

            i2.TradeFocusTokens(true);
        }
        else
        {
            if (i1.focusTokens == 2)
            {
                return;
            }

            // investigator1 gains ticket
            i1.TradeFocusTokens(true);
        }
        previousOwner.TradeFocusTokens(false);

        App.View.tradeView.TradeMade();
    }