//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); }
//process a card from the hand, make it dissapear from side, and appear on table private async Task handDeal(int hndNum, InGame iG) { if (this.Hand[hndNum].IsUsed == false) { prcesCrd(this.Hand[hndNum]); //animate hand card await iG.srchGrid(this); setHnd(hndNum); iG.printHandCard(this.TrnCnt, Hand[hndNum].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); }