//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); }
//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); }
//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); }
//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); }