• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Bots.CardDB类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



CardDB类属于HREngine.Bots命名空间,在下文中一共展示了CardDB类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: onCardIsGoingToBePlayed

//    wenn ein spieler einen zauber wirkt, erhält der andere spieler eine kopie desselben auf seine hand.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
        {
            if (c.type == CardDB.cardtype.SPELL)
            {
                p.drawACard(c.cardIDenum, !wasOwnCard, true);
            }
        }
开发者ID:martdeboer,项目名称:silverfish,代码行数:9,代码来源:Sim_EX1_100.cs


示例2: onCardIsGoingToBePlayed

        //Whenever you target this minion with a spell, gain Divine Shield

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
        {
            if (triggerEffectMinion.own == wasOwnCard && c.type == CardDB.cardtype.SPELL && target!=null && target.entityID == triggerEffectMinion.entityID)
            {
                triggerEffectMinion.divineshild = true;
            }
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:9,代码来源:Sim_AT_129.cs


示例3: onCardIsGoingToBePlayed

        //   Whenever your opponent casts a spell, gain +1 Attack.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
        {
            if (c.type == CardDB.cardtype.SPELL && wasOwnCard != triggerEffectMinion.own)
            {
                p.minionGetBuffed(triggerEffectMinion, 1, 0);
            }
        }
开发者ID:noHero123,项目名称:silverfish,代码行数:9,代码来源:Sim_GvG_067.cs


示例4: miniEnch

 public miniEnch(CardDB.cardIDEnum id, int crtr, int controler, int copydr)
 {
     this.CARDID = id;
     this.creator = crtr;
     this.controllerOfCreator = controler;
     this.copyDeathrattle = copydr;
 }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:7,代码来源:Minion.cs


示例5: onCardIsGoingToBePlayed

//    erhält jedes mal +2 angriff in diesem zug, wenn ihr einen zauber wirkt.
        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target)
        {
            if (triggerEffectMinion.own == wasOwnCard && c.type == CardDB.cardtype.SPELL)
            {
                p.minionGetTempBuff(triggerEffectMinion, 2, 0);
            }
        }
开发者ID:spanos123,项目名称:silverfish,代码行数:8,代码来源:Sim_EX1_055.cs


示例6: onCardIsGoingToBePlayed

//    erhaltet jedes mal einen „feuerball“-zauber auf eure hand, wenn ihr einen zauber wirkt.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
        {
            if (wasOwnCard == triggerEffectMinion.own && c.type == CardDB.cardtype.SPELL)
            {
                p.drawACard(CardDB.cardName.fireball, wasOwnCard, true);
            }
        }
开发者ID:JayMansel,项目名称:silverfish,代码行数:9,代码来源:Sim_EX1_559.cs


示例7: onCardIsGoingToBePlayed

 // erhält jedes Mal +1/+1, wenn Ihr eine Karte mit uberladung< ausspielt.
 public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
 {
     if (wasOwnCard == triggerEffectMinion.own && c.Recall)
     {
         p.minionGetBuffed(triggerEffectMinion, 1, 1);
     }
 }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:8,代码来源:Sim_EX1_258.cs


示例8: onCardIsGoingToBePlayed

//    erhält jedes mal +1 angriff, wenn ihr einen zauber wirkt.
        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
        {
            if (triggerEffectMinion.own == wasOwnCard && c.type == CardDB.cardtype.SPELL)
            {
                triggerEffectMinion.Angr++;
            }
        }
开发者ID:JayMansel,项目名称:silverfish,代码行数:8,代码来源:Sim_NEW1_012.cs


示例9: onCardIsGoingToBePlayed

//    erhält jedes mal +1/+1, wenn ihr eine karte ausspielt.
        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target)
        {
            if (triggerEffectMinion.own == wasOwnCard)
            {
                p.minionGetBuffed(triggerEffectMinion, 1, 1);
            }
        }
开发者ID:spanos123,项目名称:silverfish,代码行数:8,代码来源:Sim_EX1_044.cs


示例10: onCardIsGoingToBePlayed

//    erhaltet jedes mal einen „feuerball“-zauber auf eure hand, wenn ihr einen zauber wirkt.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
        {
            if (wasOwnCard == triggerEffectMinion.own && c.type == CardDB.cardtype.SPELL)
            {
                p.drawACard(CardDB.cardIDEnum.CS2_029, wasOwnCard, true);
            }
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:9,代码来源:Sim_EX1_559.cs


示例11: Handcard

 public Handcard(CardDB.Card c)
 {
     this.position = 0;
     this.entity = -1;
     this.card = c;
     this.addattack = 0;
     this.addHp = 0;
 }
开发者ID:peppert,项目名称:silverfish,代码行数:8,代码来源:Handmanager.cs


示例12: onCardIsGoingToBePlayed

 //    Whenever you cast a spell on another friendly minion, cast a copy of it on this one.
 public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
 {
     if (target != null && target.own == wasOwnCard && triggerEffectMinion.own == wasOwnCard && target.entitiyID != triggerEffectMinion.entitiyID && c.type == CardDB.cardtype.SPELL)
     {
         c.sim_card.onCardPlay(p, wasOwnCard, triggerEffectMinion, choice);
         p.doDmgTriggers();
     }
 }
开发者ID:noHero123,项目名称:silverfish,代码行数:9,代码来源:Sim__LOE_053.cs


示例13: onCardIsGoingToBePlayed

//    zieht jedes mal eine karte, wenn ihr einen zauber wirkt.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
        {
            if (c.type == CardDB.cardtype.SPELL && wasOwnCard == triggerEffectMinion.own)
            {
                p.drawACard(CardDB.cardIDEnum.None, wasOwnCard);
            }

        }
开发者ID:martdeboer,项目名称:silverfish,代码行数:10,代码来源:Sim_EX1_095.cs


示例14: onCardIsGoingToBePlayed

 public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
 {
     if (wasOwnCard == triggerEffectMinion.own && c.type == CardDB.cardtype.SPELL)
     {
         int place = (wasOwnCard)? p.ownMinions.Count : p.enemyMinions.Count;
         p.callKid(card, place, wasOwnCard);
     }
 }
开发者ID:JayMansel,项目名称:silverfish,代码行数:8,代码来源:Sim_NEW1_026.cs


示例15: 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


示例16: onCardIsGoingToBePlayed

        CardDB.Card d = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_614t);//flameofazzinoth
//    beschwört jedes mal eine flamme von azzinoth (2/1), wenn ihr eine karte ausspielt.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target)
        {
            if (wasOwnCard == triggerEffectMinion.own)
            {
                    p.callKid(d, triggerEffectMinion.zonepos, triggerEffectMinion.own);

            }
        }
开发者ID:spanos123,项目名称:silverfish,代码行数:11,代码来源:Sim_EX1_614.cs


示例17: onCardWasPlayed

        //    After you cast a spell, deal 2 damage randomly split among all enemies.

        public override void onCardWasPlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
        {
            if (triggerEffectMinion.own == wasOwnCard)
            {
                if (p.isServer)
                {
                    int timesS = 2;
                    for (int iS = 0; iS < timesS; iS++)
                    {
                        Minion poortarget = p.getRandomMinionFromSide_SERVER(!wasOwnCard, true);
                        if (poortarget != null) p.minionGetDamageOrHeal(poortarget, 1);
                    }
                    return;
                }

                List<Minion> temp = (triggerEffectMinion.own) ? p.enemyMinions : p.ownMinions;
                for (int i = 0; i < 2; i++)
                {
                    if (temp.Count >= 1)
                    {
                        //search Minion with lowest hp
                        Minion enemy = temp[0];
                        int minhp = 10000;
                        bool found = false;
                        foreach (Minion m in temp)
                        {
                            if (m.name == CardDB.cardName.nerubianegg && m.Hp >= 2) continue; //dont attack nerubianegg!
                            if (m.handcard.card.isToken && m.Hp == 1) continue;
                            if (m.name == CardDB.cardName.defender) continue;
                            if (m.name == CardDB.cardName.spellbender) continue;
                            if (m.Hp >= 2 && minhp > m.Hp)
                            {
                                enemy = m;
                                minhp = m.Hp;
                                found = true;
                            }
                        }

                        if (found)
                        {
                            p.minionGetDamageOrHeal(enemy, 1);
                        }
                        else
                        {
                            p.minionGetDamageOrHeal(triggerEffectMinion.own ? p.enemyHero : p.ownHero, 1);
                        }

                    }
                    else
                    {
                        p.minionGetDamageOrHeal(triggerEffectMinion.own ? p.enemyHero : p.ownHero, 1);
                    }
                }

                triggerEffectMinion.stealth = false;
            }
        }
开发者ID:peppert,项目名称:silverfish,代码行数:59,代码来源:Sim_BRM_002.cs


示例18: onCardIsGoingToBePlayed

 //   Whenever you cast a 1-mana spell, add a random Mech to your hand.
 //todo: do it right (not card.cost, we have to use current cost)
 public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
 {
     if (triggerEffectMinion.own == wasOwnCard)
     {
         if (c.type == CardDB.cardtype.SPELL && c.cost == 1)
         {
             p.drawACard(CardDB.cardIDEnum.GVG_058, wasOwnCard, true);
         }
     }
 }
开发者ID:martdeboer,项目名称:silverfish,代码行数:12,代码来源:Sim_GvG_117.cs


示例19: onCardIsGoingToBePlayed

        //After you cast a spell, Freeze a random enemy character.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
        {
            if (triggerEffectMinion.own == wasOwnCard && c.type == CardDB.cardtype.SPELL)
            {
                Minion target2 = null;
                List<Minion> temp = (wasOwnCard) ? p.enemyMinions : p.ownMinions;
                if (temp.Count > 0) target2 = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
                if (target2 == null) target2 = (wasOwnCard) ? p.enemyHero : p.ownHero;
                target2.frozen = true;
            }
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:13,代码来源:Sim_OG_085.cs


示例20: hasEnemyThisCardInDeck

        public bool hasEnemyThisCardInDeck(CardDB.cardIDEnum cardid)
        {
            if (this.enemyCardsPlayed.ContainsKey(cardid))
            {
                if (this.enemyCardsPlayed[cardid] == 1)
                {

                    return true;
                }
                return false;
            }
            return true;
        }
开发者ID:JulioCL,项目名称:HRCustomClasses,代码行数:13,代码来源:Probabilitymaker.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Bots.CardTemplate类代码示例发布时间:2022-05-26
下一篇:
C# Model.List类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap