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


C# Card.SendToGraveyard方法代码示例

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


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

示例1: BackFistStrike

        public void BackFistStrike(Card card)
        {
            card.cardType = Card.CardType.OneShot;

            var target = GameBoard.cardClickedArray;
            if (target.Count > 1)
            {
                MessageBox.Show("Select only one target to perform Back-Fist Strike. \n No select target default's to the Villain.");
                Hero currentPlayer = (Hero)GameEngine.getCurrentPlayer();
                currentPlayer.hand.Add(card);
                currentPlayer.graveyard.Remove(card);
                GameEngine.playerPlayedCard = false;
            }
            else if (target.Count == 1)
            {
                var villainMinions = GameEngine.getVillain().getMinions();
                var environMinions = GameEngine.getEnvironment().getMinions();

                Boolean minBool = false;

                List<Minion> minionsToAttack = null;

                foreach (Minion min in villainMinions)
                {
                    if (min.minionName.Equals(((Card)target[0]).getName()))
                    {
                        minionsToAttack.Add(min);
                        minBool = true;
                    }
                }

                foreach (Minion min in environMinions)
                {
                    if (min.minionName.Equals(((Card)target[0]).getName()))
                    {
                        minionsToAttack.Add(min);
                        minBool = true;
                    }
                }

                if (minBool)
                {
                    List<Targetable> targets = new List<Targetable>();
                    targets.AddRange(minionsToAttack);
                    DamageEffects.DealDamage(this, targets , 4, DamageEffects.DamageType.Melee);
                    card.SendToGraveyard(this, cardsOnField);
                }
                else MessageBox.Show("Please select an appropriate card.");
            }
            else
            {
                DamageEffects.DealDamage(this, new List<Targetable>(){ GameEngine.getVillain()}, 4, DamageEffects.DamageType.Melee);
                card.SendToGraveyard(this, cardsOnField);
            }
        }
开发者ID:vattercw,项目名称:SentinelsOfTheMultiverse,代码行数:55,代码来源:Legacy.cs

示例2: PunishTheWeakPower

 void PunishTheWeakPower(Card card, object[] args)
 {
     DamageEffects.damageDealtHandlers.Remove(PunishTheWeak_Damage_Handler);
     card.SendToGraveyard(this, cardsOnField);
 }
开发者ID:vattercw,项目名称:SentinelsOfTheMultiverse,代码行数:5,代码来源:Haka.cs

示例3: HakaOfRestoration_Continuation

 void HakaOfRestoration_Continuation(int numDiscardedCards, Card card)
 {
     lifeTotal += numDiscardedCards;
     card.SendToGraveyard(this, cardsOnField);
 }
开发者ID:vattercw,项目名称:SentinelsOfTheMultiverse,代码行数:5,代码来源:Haka.cs

示例4: EnduringIntercessionPower

 void EnduringIntercessionPower(Card sender, object[] args)
 {
     sender.SendToGraveyard(this, cardsOnField);
 }
开发者ID:vattercw,项目名称:SentinelsOfTheMultiverse,代码行数:4,代码来源:Haka.cs

示例5: VitalitySurge

 public void VitalitySurge(Card card)
 {
     card.cardType = Card.CardType.OneShot;
     HealEffects.healHero(this, 2);
     card.SendToGraveyard(this, cardsOnField);
     CardDrawingEffects.DrawCards(1, this);
 }
开发者ID:vattercw,项目名称:SentinelsOfTheMultiverse,代码行数:7,代码来源:Haka.cs

示例6: Rampage

        public void Rampage(Card card)
        {
            card.cardType = Card.CardType.OneShot;
            Villain villain = GameEngine.getVillain();
            GameEnvironment environ = GameEngine.getEnvironment();
            var heroes = new List<Targetable>();
            heroes.AddRange(GameEngine.getHeroes());

            DamageEffects.DealDamage(this, heroes, 2, DamageEffects.DamageType.Melee);
            DamageEffects.DealDamage(this, GameEngine.getNonHeroTargets(), 5, DamageEffects.DamageType.Melee);
            card.SendToGraveyard(this, cardsOnField);
        }
开发者ID:vattercw,项目名称:SentinelsOfTheMultiverse,代码行数:12,代码来源:Haka.cs

示例7: GroundPound

 public object[] GroundPound(Card card)
 {
     DialogResult result = MessageBox.Show("Click OK to destroy this card. Click Cancel to discard 2 cards", "Ground Pound", MessageBoxButtons.OKCancel);
     if (result == DialogResult.OK) {
         card.SendToGraveyard(this, hand);//might be cards on field instead of hand
         return null;
     } else {
         DiscardedAction discardContinuation= GroundPound_Continuation;
         StartPhaseStarted+= GroundPound_StartPhaseStarted;
         return new object[] { discardContinuation, GameEngine.ForcedEffect.DiscardCurrentPlayer, 2, card };
     }
 }
开发者ID:vattercw,项目名称:SentinelsOfTheMultiverse,代码行数:12,代码来源:Haka.cs

示例8: BolsterAllies

        public void BolsterAllies(Card card)
        {
            card.cardType = Card.CardType.OneShot;

            foreach (Hero player in GameEngine.getHeroes())
            {
                player.drawPhase(1);
            }
            card.SendToGraveyard(this, cardsOnField);
        }
开发者ID:vattercw,项目名称:SentinelsOfTheMultiverse,代码行数:10,代码来源:Legacy.cs


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