Beispiel #1
0
        //take card from deck, animate to table
        private async Task deckDeal(InGame iG, Queue <Card> deck)
        {
            Card c = deck.Dequeue();

            prcesCrd(c);
            await(iG.srchGrid(this));
            iG.txtCardVal(c.Val, this);
        }
Beispiel #2
0
 //user gets card from deck
 public async void deckCall(Boolean b, TextBlock usrScr, InGame iG, Queue<Card> deck)
 {
     //the top card is taken from the deck
     Card crd = deck.Dequeue();
     //that card is played
     playCard(crd, b, usrScr);
     //card is then animated to the screen
     await iG.srchGrid(this);
     //value of card is displayed in the image of the card
     iG.txtCardVal(crd.Val, this);
     
 }
Beispiel #3
0
        //user gets card from deck
        public async void deckCall(Boolean b, TextBlock usrScr, InGame iG, Queue <Card> deck)
        {
            //the top card is taken from the deck
            Card crd = deck.Dequeue();

            //that card is played
            playCard(crd, b, usrScr);
            //card is then animated to the screen
            await iG.srchGrid(this);

            //value of card is displayed in the image of the card
            iG.txtCardVal(crd.Val, this);
        }
Beispiel #4
0
 //take card from deck, animate to table
 private async Task deckDeal(InGame iG, Queue<Card> deck)
 {
     Card c = deck.Dequeue();
     prcesCrd(c);
     await(iG.srchGrid(this));
     iG.txtCardVal(c.Val, this);
 }