Ejemplo n.º 1
0
 /// <summary>
 /// 针对系统的法术效果
 /// </summary>
 /// <param name="game"></param>
 /// <param name="ConvertPosDirect"></param>
 /// <param name="Ability"></param>
 /// <returns></returns>
 private List<string> RunGameSystemEffect(GameManager game, bool ConvertPosDirect, AtomicEffectDefine effect, CardUtility.PositionSelectOption Option)
 {
     List<string> Result = new List<string>();
     switch (effect.AtomicEffectType)
     {
         case AtomicEffectDefine.AtomicEffectEnum.卡牌:
             CardEffect CardAtomic = new CardEffect();
             CardAtomic.GetField(effect.InfoArray);
             return CardAtomic.RunEffect(game, Option.EffectTargetSelectDirect);
         case AtomicEffectDefine.AtomicEffectEnum.水晶:
             CrystalEffect CrystalAtomic = new CrystalEffect();
             CrystalAtomic.GetField(effect.InfoArray);
             return CrystalAtomic.RunEffect(game, Option.EffectTargetSelectDirect);
         case AtomicEffectDefine.AtomicEffectEnum.武器:
             WeaponPointEffect WeaponPointAtomic = new WeaponPointEffect();
             WeaponPointAtomic.GetField(effect.InfoArray);
             return WeaponPointAtomic.RunEffect(game, Option.EffectTargetSelectDirect);
         case AtomicEffectDefine.AtomicEffectEnum.召唤:
             SummonEffect SummonAtomic = new SummonEffect();
             SummonAtomic.GetField(effect.InfoArray);
             return SummonAtomic.RunEffect(game, Option.EffectTargetSelectDirect);
     }
     return Result;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 针对系统的法术效果
 /// </summary>
 /// <param name="game"></param>
 /// <param name="ConvertPosDirect"></param>
 /// <param name="Ability"></param>
 /// <returns></returns>
 public static List<string> RunGameSystemEffect(ActionStatus game, AtomicEffectDefine effect, CardUtility.位置选择用参数结构体 Option)
 {
     List<string> Result = new List<string>();
     switch (effect.AtomicEffectType)
     {
         case AtomicEffectDefine.AtomicEffectEnum.卡牌:
             CardEffect CardAtomic = new CardEffect();
             CardAtomic.GetField(effect.InfoArray);
             return CardAtomic.RunEffect(game, Option.EffectTargetSelectDirect);
         case AtomicEffectDefine.AtomicEffectEnum.水晶:
             CrystalEffect CrystalAtomic = new CrystalEffect();
             CrystalAtomic.GetField(effect.InfoArray);
             return CrystalAtomic.RunEffect(game, Option.EffectTargetSelectDirect);
         case AtomicEffectDefine.AtomicEffectEnum.武器:
             WeaponPointEffect WeaponPointAtomic = new WeaponPointEffect();
             WeaponPointAtomic.GetField(effect.InfoArray);
             return WeaponPointAtomic.RunEffect(game, Option.EffectTargetSelectDirect);
         case AtomicEffectDefine.AtomicEffectEnum.召唤:
             SummonEffect SummonAtomic = new SummonEffect();
             SummonAtomic.GetField(effect.InfoArray);
             return SummonAtomic.RunEffect(game, Option.EffectTargetSelectDirect);
     }
     return Result;
 }