コード例 #1
0
 private Predicate <IControlable> CreatePredicate(TargetingInfo targetingInfo)
 {
     return
         (delegate(IControlable possibleTarget)
     {
         return
         possibleTarget.IsTargetable &&
         targetingInfo.MeetsRequirements(FactionInfo.GetTargetingType(host, possibleTarget));
         //  GetTargetingType(possibleTarget));
     });
 }
コード例 #2
0
 public bool CanEffect(IControlable controlable)
 {
     return(effectsWho.IsAll ||
            effectsWho.MeetsRequirements(FactionInfo.GetTargetingType(Source, controlable)));
 }