Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //use rent no double the rent
            MonopolyDealServiceReference.PropertyCardSet selectedSet       = listBoxSet.SelectedItem as MonopolyDealServiceReference.PropertyCardSet;
            MonopolyDealServiceReference.Card            doubleTheRentCard = null;
            int doubleTheRentCardID = -1;

            if (doubleTheRentCard != null)
            {
                doubleTheRentCardID = doubleTheRentCard.cardID;
            }
            bool usingDoubleTheRent = false;
            bool isWildRentCard     = true;

            if (RentCard is MonopolyDealServiceReference.RentStandard)
            {
                isWildRentCard = false;
            }
            request.useRentCard(RentCard.cardID, selectedSet.guid, usingDoubleTheRent, doubleTheRentCardID, isWildRentCard, targetedPlayer);
        }