本文整理汇总了C#中BlackJack.model.Player.DealCard方法的典型用法代码示例。如果您正苦于以下问题:C# Player.DealCard方法的具体用法?C# Player.DealCard怎么用?C# Player.DealCard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlackJack.model.Player
的用法示例。
在下文中一共展示了Player.DealCard方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DealCard
public void DealCard(Player a_toGetCard, bool a_showCard)
{
var c = m_deck.GetCard();
c.Show(a_showCard);
a_toGetCard.DealCard(c);
Notify();
}
示例2: DealCard
public void DealCard(Player a_player, bool a_show)
{
Card c;
c = m_deck.GetCard();
c.Show(a_show);
a_player.DealCard(c);
}
示例3: Deal
public void Deal(Player a_player, bool show = true)
{
Card c;
c = m_deck.GetCard();
c.Show(show);
a_player.DealCard(c);
}
示例4: NewCard
public void NewCard(Player a_player, bool show)
{
Card c = m_deck.GetCard();
c.Show(show);
a_player.DealCard(c);
UpdateObservers();
}
示例5: DealCard
public void DealCard(bool show, Player a_player)
{
Card c;
c = m_deck.GetCard();
c.Show(show);
a_player.DealCard(c);
}
示例6: HitPlayer
public void HitPlayer(Player a_player)
{
if (m_deck != null && a_player.GetScoreOfHand() < 21)
{
Card c = m_deck.GetCard();
c.Show();
a_player.DealCard(c);
}
}
示例7: GetNewCard
public void GetNewCard(Player a_player, bool a_showCard = true)
{
foreach (IBlackJackObserver a_observer in m_observers)
{
a_observer.AddCardDelay();
}
Card c = m_deck.GetCard();
c.Show(a_showCard);
a_player.DealCard(c);
}
示例8: GetCard
public void GetCard(Player player, bool showCard = true)
{
Card c = m_deck.GetCard();
c.Show(showCard);
player.DealCard(c);
foreach(BlackJackObserver observer in m_BlackJackObserver)
{
observer.CardDisplayed();
}
}
示例9: Hit
public bool Hit(Player a_player)
{
if (m_deck != null && a_player.CalcScore() < m_winRule.GetMaxScore && !IsGameOver())
{
a_player.DealCard(true, m_deck.GetCard());
return true;
}
return false;
}
示例10: NewCard
public void NewCard(Player a_player, bool a_showCard)
{
foreach (IGameObserver a_observer in m_observer)
{
a_observer.CardDelay();
}
Card c = m_deck.GetCard();
c.Show(a_showCard);
a_player.DealCard(c);
}
示例11: Deal
public void Deal(Player player, bool show)
{
Card c = m_deck.GetCard();
c.Show(show);
player.DealCard(c);
foreach (CardDealtListener l in m_subscribers)
{
l.CardDealt(c);
}
}
示例12: getShowDealCard
public void getShowDealCard(Player a_player, Boolean show)
{
Card c = m_deck.GetCard();
c.Show(show);
a_player.DealCard(c);
foreach (BlackJackObserver o in m_observers)
{
o.CardDealt();
}
}
示例13: DealPlayerCard
public void DealPlayerCard(bool hiddenCard, Player player)
{
Card c = m_deck.GetCard();
c.Show(hiddenCard);
player.DealCard(c);
foreach (IGameobserver o in m_observer)
{
o.Playerhasacard();
}
}
示例14: DealCardHandler
public void DealCardHandler(bool hiddenCard, Player player)
{
Card c = m_deck.GetCard();
c.Show(hiddenCard);
player.DealCard(c);
foreach (IDrawCardObserver o in m_observers)
{
o.DrawCard(c);
}
}
示例15: Deal
public void Deal(Player person, Boolean value)
{
Card c = m_deck.GetCard();
c.Show(value);
person.DealCard(c);
foreach (var observer in m_observer)
{
observer.cardDrawn(c);
}
}