本文整理汇总了C#中Deck.GetCard方法的典型用法代码示例。如果您正苦于以下问题:C# Deck.GetCard方法的具体用法?C# Deck.GetCard怎么用?C# Deck.GetCard使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Deck
的用法示例。
在下文中一共展示了Deck.GetCard方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NewGame
public bool NewGame(Deck a_deck, Dealer a_dealer, Player a_player)
{
a_player.DealCard(true, a_deck.GetCard());
a_dealer.DealCard(true, a_deck.GetCard());
a_player.DealCard(true, a_deck.GetCard());
return true;
}
示例2: getShowAndDealCard
public void getShowAndDealCard(Deck a_deck, bool shouldShow, Player player)
{
Card c;
c = a_deck.GetCard();
c.Show(shouldShow);
player.DealCard(c);
}
示例3: ProcessCard
protected void ProcessCard(Deck a_deck, Player a_player, bool showCard = true)
{
Card c;
c = a_deck.GetCard();
c.Show(showCard);
a_player.DealCard(c);
}
示例4: StartNewRound
public void StartNewRound(Player a_player, Player a_dealer, Deck a_deck)
{
Card c = a_deck.GetCard();
c.Show();
a_player.DealCard(c);
c = a_deck.GetCard();
c.Show();
a_dealer.DealCard(c);
c = a_deck.GetCard();
c.Show();
a_player.DealCard(c);
c = a_deck.GetCard();
a_dealer.DealCard(c);
}
示例5: NewGame
public bool NewGame(Deck a_deck, Dealer a_dealer, Player a_player)
{
Card c;
c = a_deck.GetCard();
c.Show(true);
a_player.DealCard(c);
c = a_deck.GetCard();
c.Show(true);
a_dealer.DealCard(c);
c = a_deck.GetCard();
c.Show(true);
a_player.DealCard(c);
return true;
}
示例6: DealNewCards
protected void DealNewCards(Player a_player, Deck a_deck, bool show)
{
var c = a_deck.GetCard();
c.Show(show);
a_player.DealCard(c);
}