Ejemplo n.º 1
0
 public void SetAITargetDefinition(TargetAdder adder, TargetEvaluator eval, params TargetFilter[] filters)
 {
     AITargetHandlerDefintion = new TargetDefinition(adder, filters);
     if (eval != null)
     {
         CustomTargetEvaluator = eval;
     }
 }
Ejemplo n.º 2
0
		public TargetDefinition(TargetAdder adder, params TargetFilter[] filters)
		{
			Adder = adder;
			if (filters != null)
			{
				foreach (var filter in filters)
				{
					AddFilter(filter);
				}
			}
		}
Ejemplo n.º 3
0
 public TargetDefinition(TargetAdder adder, params TargetFilter[] filters)
 {
     Adder = adder;
     if (filters != null)
     {
         foreach (var filter in filters)
         {
             AddFilter(filter);
         }
     }
 }
Ejemplo n.º 4
0
 public TargetDefinition(TargetAdder adder, params TargetFilter[] filters)
 {
     this.Adder = adder;
     if (filters == null)
     {
         return;
     }
     foreach (TargetFilter filter in filters)
     {
         this.AddFilter(filter);
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Sets the AITargetHandlerDefintion of all effects
 /// </summary>
 public void OverrideAITargetDefinitions(TargetAdder adder, TargetEvaluator evaluator = null,
     params TargetFilter[] filters)
 {
     OverrideAITargetDefinitions(new TargetDefinition(adder, filters), evaluator);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Sets the AITargetHandlerDefintion of all effects
 /// </summary>
 public void OverrideAITargetDefinitions(TargetAdder adder, params TargetFilter[] filters)
 {
     OverrideAITargetDefinitions(new TargetDefinition(adder, filters));
 }
Ejemplo n.º 7
0
 public void SetAITargetDefinition(TargetAdder adder, params TargetFilter[] filters)
 {
     AITargetHandlerDefintion = new TargetDefinition(adder, filters);
 }
Ejemplo n.º 8
0
		public void SetAITargetDefinition(TargetAdder adder, TargetEvaluator eval, params TargetFilter[] filters)
		{
			AITargetHandlerDefintion = new TargetDefinition(adder, filters);
			if (eval != null)
			{
				CustomTargetEvaluator = eval;
			}
		}
Ejemplo n.º 9
0
		public void SetAITargetDefinition(TargetAdder adder, params TargetFilter[] filters)
		{
			AITargetHandlerDefintion = new TargetDefinition(adder, filters);
		}