Esempio n. 1
0
 protected Composite CreateCastPetActionOnLocation(string action, LocationRetrievalDelegate location, SimpleBoolReturnDelegate extra)
 {
     return(new Decorator(
                ret => extra(ret) && PetManager.CanCastPetAction(action),
                new Sequence(
                    new Action(ret => PetManager.CastPetAction(action)),
                    new Action(ret => LegacySpellManager.ClickRemoteLocation(location(ret))))));
 }
Esempio n. 2
0
 private Composite CreateSpellCastOnLocation(string spellName, LocationRetrievalDelegate onLocation)
 {
     return(new Decorator(
                ret => CanCast(spellName, null, false),
                new Sequence(
                    new Action(ret => CastWithLog(spellName, null)),
                    new Action(ret => StyxWoW.SleepForLagDuration()),
                    new Action(ret => LegacySpellManager.ClickRemoteLocation(onLocation(ret))))));
 }
Esempio n. 3
0
 protected Composite CreateCastPetActionOnLocation(string action, LocationRetrievalDelegate location)
 {
     return(CreateCastPetActionOnLocation(action, location, ret => true));
 }
 private Composite CreateSpellCastOnLocation(string spellName, LocationRetrievalDelegate onLocation)
 {
     return new Decorator(
         ret => CanCast(spellName, null, false),
         new Sequence(
             new Action(ret => CastWithLog(spellName, null)),
             new Action(ret => StyxWoW.SleepForLagDuration()),
             new Action(ret => LegacySpellManager.ClickRemoteLocation(onLocation(ret)))));
 }
 protected Composite CreateCastPetActionOnLocation(string action, LocationRetrievalDelegate location, SimpleBoolReturnDelegate extra)
 {
     return new Decorator(
         ret =>  extra(ret) && PetManager.CanCastPetAction(action),
         new Sequence(
             new Action(ret => PetManager.CastPetAction(action)),
             new Action(ret => LegacySpellManager.ClickRemoteLocation(location(ret)))));
 }
 protected Composite CreateCastPetActionOnLocation(string action, LocationRetrievalDelegate location)
 {
     return CreateCastPetActionOnLocation(action, location, ret => true);
 }