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)))))); }
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) { 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); }