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


C# Board.SpawnMinion方法代码示例

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


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

示例1: OnPlay

        public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
        {
            base.OnPlay(ref board, target,index);
            if(choice == 1)
            {
                foreach(Card c in board.MinionFriend)
                {
                    c.currentAtk += 2;
                    c.maxHealth += 2;
                    c.CurrentHealth+=2;
                }
                board.SpawnMinion(template.Id, index, CurrentCost);
            }
            else if(choice == 2)
            {
                board.AddCardToBoard("EX1_573t", true);
                board.SpawnMinion(template.Id, index, CurrentCost);
                board.AddCardToBoard("EX1_573t", true);

            }
        }
开发者ID:jrgutier,项目名称:SmartCC,代码行数:21,代码来源:EX1_573.cs

示例2: OnPlay

 public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
 {
     base.OnPlay(ref board, target,index);
     board.SpawnMinion(template.Id, index, CurrentCost);
     if(choice == 1)
     {
         board.FriendCardDraw += 2;
     }
     else if(choice == 2)
     {
         if(target != null)
         {
             target.Heal(5, ref board);
         }
     }
 }
开发者ID:jrgutier,项目名称:SmartCC,代码行数:16,代码来源:NEW1_008.cs

示例3: OnPlay

        public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
        {
            base.OnPlay(ref board, target,index);

            Card c = board.SpawnMinion(template.Id, index, CurrentCost);

            if(choice == 1)
            {
                c.currentAtk += 5;
            }
            else if(choice == 2)
            {
                c.maxHealth += 5;
                c.CurrentHealth += 5;
                c.IsTaunt = true;
            }
        }
开发者ID:jrgutier,项目名称:SmartCC,代码行数:17,代码来源:EX1_178.cs

示例4: OnPlay

 public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
 {
     base.OnPlay(ref board, target,index);
     board.SpawnMinion(template.Id, index, CurrentCost);
     if(choice == 1)
     {
         if (target != null)
             target.Damage(2, ref board);
     }
     else if(choice == 2)
     {
         if(target != null)
         {
             if(target.Type != CType.HERO)
             {
                 target.Silence();
             }
         }
     }
 }
开发者ID:jrgutier,项目名称:SmartCC,代码行数:20,代码来源:EX1_166.cs


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