当前位置: 首页>>代码示例>>C#>>正文


C# Player.DealCard方法代码示例

本文整理汇总了C#中Player.DealCard方法的典型用法代码示例。如果您正苦于以下问题:C# Player.DealCard方法的具体用法?C# Player.DealCard怎么用?C# Player.DealCard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Player的用法示例。


在下文中一共展示了Player.DealCard方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
        }
开发者ID:Holmewi,项目名称:1dv607-jh222qr-workshops,代码行数:10,代码来源:InternationalNewGameStrategy.cs

示例2: getShowAndDealCard

 public void getShowAndDealCard(Deck a_deck, bool shouldShow, Player player)
 {
     Card c;
     c = a_deck.GetCard();
     c.Show(shouldShow);
     player.DealCard(c);
 }
开发者ID:henceee,项目名称:blackjack_csharp,代码行数:7,代码来源:GetShowAndDeal.cs

示例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);
 }
开发者ID:johnnypesola,项目名称:blackjack_csharp,代码行数:7,代码来源:BaseNewGameStrategy.cs

示例4: GetCardAndDeal

        protected void GetCardAndDeal(IDeck a_deck, Player a_player, bool showCard)
        {
            Card c;

            c = a_deck.GetCard();
            c.Show(showCard);
            a_player.DealCard(c);
        }
开发者ID:henceee,项目名称:1DV607-1,代码行数:8,代码来源:BaseGameStrategy.cs

示例5: 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);
            }
开发者ID:tobias-dv-lnu,项目名称:1dv607_2015,代码行数:17,代码来源:AmericanStartNewGameStrategy.cs

示例6: 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;
        }
开发者ID:henceee,项目名称:1DV607,代码行数:18,代码来源:InternationalNewGameStrategy.cs

示例7: DealNewCards

 protected void DealNewCards(Player a_player, Deck a_deck, bool show)
 {
     var c = a_deck.GetCard();
     c.Show(show);
     a_player.DealCard(c);
 }
开发者ID:mj223dg,项目名称:BlackJack,代码行数:6,代码来源:NewStrategy.cs


注:本文中的Player.DealCard方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。