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


C# Playfield.drawACard方法代码示例

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


在下文中一共展示了Playfield.drawACard方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: onCardPlay

//    erhaltet einen leeren manakristall.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            if (ownplay)
            {
                if (p.ownMaxMana < 10)
                {
                    p.ownMaxMana++;
                }
                else
                {
                    p.drawACard(CardDB.cardName.excessmana, true, true);
                }

            }
            else
            {
                if (p.enemyMaxMana < 10)
                {
                    p.enemyMaxMana++;
                }
                else
                {
                    p.drawACard(CardDB.cardName.excessmana, false, true);
                }
            }
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:27,代码来源:Sim_CS2_013.cs

示例2: onCardPlay

//    zieht 4 karten.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            p.drawACard(CardDB.cardName.unknown, ownplay);
            p.drawACard(CardDB.cardName.unknown, ownplay);
            p.drawACard(CardDB.cardName.unknown, ownplay);
            p.drawACard(CardDB.cardName.unknown, ownplay);
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:8,代码来源:Sim_CS2_077.cs

示例3: getBattlecryEffect

        //    Give each player a Mana Crystal.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {

                p.drawACard(CardDB.cardName.unknown, true);
                p.drawACard(CardDB.cardName.unknown, false);
           
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:9,代码来源:Sim_GvG_032b.cs

示例4: onTurnEndsTrigger

        //   At the end of each player's turn, that player draws until they have 3 cards.

        public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
        {

            int cardstodraw = 0;
            if (p.owncards.Count <= 2)
            {
                cardstodraw = 3 - p.owncards.Count; 
            }

            for (int i = 0; i < cardstodraw; i++)
            {
                p.drawACard(CardDB.cardIDEnum.None, true);
            }
            cardstodraw = 0;

            //draw enemys cards...
            if (p.enemyAnzCards <= 2)
            {
                cardstodraw = 3 - p.enemyAnzCards;
            }

            for (int i = 0; i < cardstodraw; i++)
            {
                p.drawACard(CardDB.cardIDEnum.None, false);
            }

        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:29,代码来源:Sim_GvG_094.cs

示例5: onCardPlay

        //Shuffle the Golden Monkey into your deck. Draw a card.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if (p.isServer)
            {
                if (ownplay)
                {
                    p.ownDeckSize++;
                }
                else
                {
                    p.enemyDeckSize++;
                }
                p.drawACard(CardDB.cardIDEnum.None, ownplay, true);
                return;
            }

            if (ownplay)
            {
                p.ownDeckSize++;
            }
            else
            {
                p.enemyDeckSize++;
            }
            p.drawACard(CardDB.cardIDEnum.None, ownplay, true);

        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:29,代码来源:Sim__LOE_019t.cs

示例6: onCardPlay

        //    Draw 2 cards. Overload: (2)

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.changeRecall(ownplay, 2);
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:9,代码来源:Sim_AT_053.cs

示例7: getBattlecryEffect

 //   Add 2 random spells to your hand (from your opponent's class).
 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     if (own.own)
     {
         /*if (p.enemyHeroName == HeroEnum.druid)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.hunter)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.mage)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.pala)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.priest)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.shaman)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.thief)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.warlock || p.enemyHeroName == HeroEnum.lordjaraxxus)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.warrior)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }*/
         p.drawACard(CardDB.cardIDEnum.BRM_030t, true, true);
         p.drawACard(CardDB.cardIDEnum.BRM_030t, true, true);
         
     }
     else
     {
         p.drawACard(CardDB.cardIDEnum.None, false, true);
         p.drawACard(CardDB.cardIDEnum.None, false, true);
     }
 }
开发者ID:John4Jobs,项目名称:silverfish,代码行数:60,代码来源:Sim_BRM_030.cs

示例8: onCardIsGoingToBePlayed

        //    Whenever your opponent casts a spell, gain a copy of it and give them a Coin.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target)
        {
            if (c.type == CardDB.cardtype.SPELL && c.name != CardDB.cardName.gallywixscoin && wasOwnCard != triggerEffectMinion.own)
            {
                p.drawACard(c.cardIDenum, triggerEffectMinion.own, true);
                p.drawACard(CardDB.cardIDEnum.GVG_028t, wasOwnCard, true);
            }
        }
开发者ID:spanos123,项目名称:silverfish,代码行数:10,代码来源:Sim_GvG_028.cs

示例9: onCardPlay

        //    Draw 2 cards. Overload: (2)

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };

            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            
        }
开发者ID:spanos123,项目名称:silverfish,代码行数:10,代码来源:Sim__AT_053.cs

示例10: onCardPlay

        // Both players draw 2 cards and gain a Mana Crystal.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.drawACard(CardDB.cardName.unknown, true);
            p.drawACard(CardDB.cardName.unknown, false);
			
			p.mana = Math.Min(10, p.mana+1);
			p.ownMaxMana = Math.Min(10, p.ownMaxMana+1);
			p.enemyMaxMana = Math.Min(10, p.enemyMaxMana+1);
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:11,代码来源:Sim_NAX5_03.cs

示例11: getBattlecryEffect

        //Battlecry: discover a deathrattle card

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (p.isServer)
            {
                p.drawACard(CardDB.cardIDEnum.None, own.own, true);
                return;
            }
            p.drawACard(CardDB.cardIDEnum.None, own.own, true);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:11,代码来源:Sim__LOE_006.cs

示例12: getBattlecryEffect

        //bc: discover a powerful artifact.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (p.isServer)
            {
                p.drawACard(CardDB.cardIDEnum.LOEA16_4, own.own, true);
                return;
            }
            //TODO add a choice card with all 3 artifacts?
            p.drawACard(CardDB.cardIDEnum.LOEA16_4, own.own, true);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:12,代码来源:Sim__LOE_092.cs

示例13: onDeathrattle

        //   Deathrattle: Add a Spare Part card to your hand.

        public override void onDeathrattle(Playfield p, Minion m)
        {
            if (p.isServer)
            {
                p.drawACard(p.getRandomSparePart_SERVER(), m.own, true);
                return;
            }

            p.drawACard(CardDB.cardIDEnum.PART_001, m.own, true);
        }
开发者ID:noHero123,项目名称:silverfish,代码行数:12,代码来源:Sim_GvG_082.cs

示例14: onTurnStartTrigger

//    vernichtet zu beginn eures zuges diesen diener und zieht 3 karten.

        public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
        {
            if (turnStartOfOwner == triggerEffectMinion.own)
            {
                p.minionGetDestroyed(triggerEffectMinion);
                p.drawACard(CardDB.cardIDEnum.None, turnStartOfOwner);
                p.drawACard(CardDB.cardIDEnum.None, turnStartOfOwner);
                p.drawACard(CardDB.cardIDEnum.None, turnStartOfOwner);
            }
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:12,代码来源:Sim_Mekka1.cs

示例15: onDeathrattle

        //Deathrattle: Reveal a minion in each deck. If yours costs more, return this to your hand.

        public override void onDeathrattle(Playfield p, Minion m)
        {
            if (p.isServer)
            {
                //TODO
                p.drawACard(CardDB.cardIDEnum.AT_128, m.own, true);
                return;
            }

            p.drawACard(CardDB.cardIDEnum.AT_128, m.own, true);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:13,代码来源:Sim_AT_128.cs


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