Exemplo n.º 1
0
 /// <summary>
 /// 简化的构造器
 /// </summary>
 /// <param name="buff">光环添加的buff</param>
 /// <param name="range"></param>
 /// <param name="pile"></param>
 /// <param name="filter"></param>
 public Halo(Buff buff, PileFlag range, PileFlag pile = PileFlag.self | PileFlag.field, Func <THHGame, Card, bool> filter = null)
 {
     this.buff   = buff;
     piles       = PileName.getPiles(pile);
     getRange    = (game, card) => range.getPiles(game, card.getOwner());
     this.filter = filter;
 }
Exemplo n.º 2
0
 public LambdaSingleTargetEffect(ExecuteDelegate onExecute,
                                 PileFlag ranges = PileFlag.none,
                                 CheckConditionDelegate onCheckCondition = null,
                                 CheckTargetDelegate onCheckTarget       = null)
 {
     if (ranges != PileFlag.none)
     {
         this.ranges = PileName.getPiles(ranges);
     }
     _onCheckCondition = onCheckCondition;
     _onCheckTarget    = onCheckTarget;
     _onExecute        = onExecute;
 }