/// <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 <see cref="SpellCast" /> class.
 /// </summary>
 /// <param name="power">The power.</param>
 /// <param name="posRetriever">The pos retriever.</param>
 /// <param name="dynWorldRetriever">The dyn world retriever.</param>
 /// <param name="targetRetriever">The target retriever.</param>
 /// <param name="extra">The extra.</param>
 /// <param name="suceedRunner">The suceed runner.</param>
 /// <remarks> Created 2012-06-18 </remarks>
 public SpellCast(SNOPower power, ValueRetriever <Vector3> posRetriever = null,
                  ValueRetriever <int> dynWorldRetriever = null, ValueRetriever <int> targetRetriever = null,
                  ValueRetriever <bool> extra            = null, ActionSucceedDelegate suceedRunner = null)
 {
     Power                   = power;
     PositionRetriever       = posRetriever;
     DynamicWorldIdRetriever = dynWorldRetriever;
     TargetGuidRetriever     = targetRetriever;
     ExtraCondition          = extra;
     SucceedRunner           = suceedRunner;
 }
 /// <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;
 }
Exemple #4
0
 public Action(ActionSucceedDelegate action = null)
 {
     SucceedRunner = action;
 }
 public ActionFail(ActionSucceedDelegate action)
 {
     FailRunner = action;
 }
Exemple #6
0
 public ActionRunOnceContinue(ActionSucceedDelegate actionSucceedDelegate)
 {
     _actionSucceedDelegate = actionSucceedDelegate;
 }
Exemple #7
0
 public Action(ActionSucceedDelegate action = null)
 {
     SucceedRunner = action;
 }
 public UseHotkeyAction(KeyboardHelper helper, ActionSucceedDelegate action, HotkeyDelegate hotkey) : base(action)
 {
     KeyboardHelper = helper;
     Hotkey         = hotkey;
 }
 /// <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)
 {
 }
Exemple #10
0
 public ActionRunOnce(ActionSucceedDelegate actionSucceedDelegate)
     : base(actionSucceedDelegate)
 {
 }
 public ActionRunOnceContinue(ActionSucceedDelegate actionSucceedDelegate)
 {
     _actionSucceedDelegate = actionSucceedDelegate;
 }
Exemple #12
0
 public ActionRunOnce(ActionSucceedDelegate actionSucceedDelegate)
     : base(actionSucceedDelegate)
 {
 }