/// <summary>
 ///     Initializes a new instance of the <see cref="SelfCast" /> class.
 /// </summary>
 /// <param name="power">The power.</param>
 /// <param name="extra">The extra.</param>
 /// <param name="succeedRunner">The succeed runner.</param>
 /// <param name="keepSpamming">Casts the spell multiple times for one second</param>
 /// <param name="contextChangeHandler"></param>
 /// <remarks>Created 2012-06-18</remarks>
 public SelfCast(SNOPower power, ValueRetriever <bool> extra = null, ActionSucceedDelegate succeedRunner       = null,
                 ValueRetriever <bool> keepSpamming          = null, ContextChangeHandler contextChangeHandler = null)
     : base(
         power, null, ctx => ZetaDia.CurrentWorldDynamicId, null, extra, succeedRunner, keepSpamming,
         contextChangeHandler)
 {
 }
 /// <summary>
 ///     Initializes a new instance of the SpellCast class.
 /// </summary>
 public SpellCast(SNOPower power, ValueRetriever <Vector3> positionRetriever = null,
                  ValueRetriever <int> dynamicWorldIdRetriever = null,
                  ValueRetriever <int> targetGuidRetriever     = null, ValueRetriever <bool> extraCondition = null,
                  ActionSucceedDelegate succeedRunner          = null, ValueRetriever <bool> keepSpamming   = null,
                  ContextChangeHandler contextChangeHandler    = null)
 {
     Power                   = power;
     PositionRetriever       = positionRetriever;
     DynamicWorldIdRetriever = dynamicWorldIdRetriever;
     TargetGuidRetriever     = targetGuidRetriever;
     ExtraCondition          = extraCondition;
     KeepSpamming            = keepSpamming;
     ContextChangeHandler    = contextChangeHandler;
     SucceedRunner           = succeedRunner;
 }
Beispiel #3
0
 public Parallel(Policy failurePolicy, Policy successPolicy, ContextChangeHandler contextChange, params Composite[] children)
     : this(failurePolicy, successPolicy, children)
 {
     ContextChanger = contextChange;
 }
Beispiel #4
0
 public Sequence(ContextChangeHandler contextChange, params Composite[] children)
     : this(children)
 {
     ContextChanger = contextChange;
 }
 public PrioritySelector(ContextChangeHandler contextChange, params TreeNode[] children)
     : this(children)
 {
     ContextChanger = contextChange;
 }
Beispiel #6
0
 public PrioritySelector(ContextChangeHandler contextChange, params Composite[] children)
     : this(children)
 {
     ContextChanger = contextChange;
 }
 public FrameLockSelector(ContextChangeHandler contextChange, params Composite[] children)
     : base(contextChange, children)
 {
     // empty
 }
Beispiel #8
0
 public Sequence(ContextChangeHandler contextChange, params Composite[] children)
     : this(children)
 {
     ContextChanger = contextChange;
 }
Beispiel #9
0
 public Sequence(ContextChangeHandler contextChange, params TreeNode[] children)
     : this(children)
 {
     ContextChanger = contextChange;
 }
Beispiel #10
0
 public RandomSelector(int seed, ContextChangeHandler contextChange, params Composite[] children)
     : this(seed, children)
 {
     ContextChanger = contextChange;
 }
Beispiel #11
0
 public Parallel(ContextChangeHandler contextChange, params Composite[] children)
     : this(children)
 {
     ContextChanger = contextChange;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="CastOnUnit" /> class.
 /// </summary>
 /// <param name="power">The power.</param>
 /// <param name="targetRetriever">The target retriever.</param>
 /// <param name="extra">The extra.</param>
 /// <param name="succeedRunner">The succeed runner.</param>
 /// <param name="keepSpamming">Casts the spell multiple times for one second</param>
 /// <param name="contextChangeHandler"></param>
 /// <remarks> Created 2012-06-18 </remarks>
 public CastOnUnit(SNOPower power, ValueRetriever <int> targetRetriever, ValueRetriever <bool> extra = null,
                   ActionSucceedDelegate succeedRunner       = null, ValueRetriever <bool> keepSpamming = null,
                   ContextChangeHandler contextChangeHandler = null)
     : base(power, null, null, targetRetriever, extra, succeedRunner, keepSpamming, contextChangeHandler)
 {
 }
 public FrameLockSelector(ContextChangeHandler contextChange, params Composite[] children)
     : base(contextChange, children)
 {
     // empty
 }
Beispiel #14
0
 public Sequence(ContextChangeHandler contextChange, params TreeNode[] children)
     : this(children)
 {
     ContextChanger = contextChange;
 }
Beispiel #15
0
 public Parallel(Policy failurePolicy, Policy successPolicy, ContextChangeHandler contextChange, params Composite[] children)
     : this(failurePolicy, successPolicy, children)
 {
     ContextChanger = contextChange;
 }