public AdhocNPCGoal(ILogger logger, ConfigurableInput input, PlayerReader playerReader, IPlayerDirection playerDirection, StopMoving stopMoving, NpcNameFinder npcNameFinder, StuckDetector stuckDetector, ClassConfiguration classConfiguration, IPPather pather, KeyAction key, IBlacklist blacklist) { this.logger = logger; this.input = input; this.playerReader = playerReader; this.playerDirection = playerDirection; this.stopMoving = stopMoving; this.npcNameFinder = npcNameFinder; this.stuckDetector = stuckDetector; this.classConfiguration = classConfiguration; this.pather = pather; this.key = key; this.blacklist = blacklist; if (key.InCombat == "false") { AddPrecondition(GoapKey.incombat, false); } else if (key.InCombat == "true") { AddPrecondition(GoapKey.incombat, true); } this.Keys.Add(key); }
public AdhocNPCGoal(ILogger logger, ConfigurableInput input, AddonReader addonReader, IPlayerDirection playerDirection, StopMoving stopMoving, NpcNameTargeting npcNameTargeting, StuckDetector stuckDetector, ClassConfiguration classConfiguration, IPPather pather, KeyAction key, IBlacklist blacklist, MountHandler mountHandler, Wait wait, ExecGameCommand exec) { this.logger = logger; this.input = input; this.addonReader = addonReader; this.playerReader = addonReader.PlayerReader; this.playerDirection = playerDirection; this.stopMoving = stopMoving; this.npcNameTargeting = npcNameTargeting; this.stuckDetector = stuckDetector; this.classConfiguration = classConfiguration; this.pather = pather; this.key = key; this.blacklist = blacklist; this.mountHandler = mountHandler; this.wait = wait; this.execGameCommand = exec; this.gossipReader = addonReader.GossipReader; if (key.InCombat == "false") { AddPrecondition(GoapKey.incombat, false); } else if (key.InCombat == "true") { AddPrecondition(GoapKey.incombat, true); } this.Keys.Add(key); }
public FollowRouteGoal(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, IPlayerDirection playerDirection, List <WowPoint> points, StopMoving stopMoving, NpcNameFinder npcNameFinder, StuckDetector stuckDetector, ClassConfiguration classConfiguration, IPPather pather, MountHandler mountHandler, TargetFinder targetFinder) { this.logger = logger; this.input = input; this.wait = wait; this.addonReader = addonReader; this.playerReader = addonReader.PlayerReader; this.playerDirection = playerDirection; this.stopMoving = stopMoving; this.pointsList = points; this.npcNameFinder = npcNameFinder; this.stuckDetector = stuckDetector; this.classConfiguration = classConfiguration; this.pather = pather; this.mountHandler = mountHandler; this.targetFinder = targetFinder; MinDistance = !(pather is RemotePathingAPIV3) ? 15 : 8; if (classConfiguration.Mode != Mode.AttendedGather) { AddPrecondition(GoapKey.incombat, false); AddPrecondition(GoapKey.producedcorpse, false); AddPrecondition(GoapKey.consumecorpse, false); } }
public CorpseRunGoal(PlayerReader playerReader, ConfigurableInput input, IPlayerDirection playerDirection, List <WowPoint> spiritWalker, StopMoving stopMoving, ILogger logger, StuckDetector stuckDetector) { this.playerReader = playerReader; this.input = input; this.playerDirection = playerDirection; this.stopMoving = stopMoving; this.spiritWalkerPath = spiritWalker.ToList(); this.logger = logger; this.stuckDetector = stuckDetector; AddPrecondition(GoapKey.isdead, true); }
public LastTargetLoot(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, StopMoving stopMoving, CombatUtil combatUtil) { this.logger = logger; this.input = input; this.wait = wait; this.playerReader = addonReader.PlayerReader; this.stopMoving = stopMoving; this.bagReader = addonReader.BagReader; this.combatUtil = combatUtil; }
public LootGoal(ILogger logger, ConfigurableInput input, PlayerReader playerReader, BagReader bagReader, StopMoving stopMoving, ClassConfiguration classConfiguration, NpcNameFinder npcNameFinder) { this.logger = logger; this.input = input; this.playerReader = playerReader; this.stopMoving = stopMoving; this.bagReader = bagReader; this.classConfiguration = classConfiguration; this.npcNameFinder = npcNameFinder; outOfCombat = playerReader.PlayerBitValues.PlayerInCombat; }
public ParallelGoal(ILogger logger, ConfigurableInput input, PlayerReader playerReader, StopMoving stopMoving, List <KeyAction> keysConfig, CastingHandler castingHandler) { this.logger = logger; this.input = input; this.stopMoving = stopMoving; this.playerReader = playerReader; this.castingHandler = castingHandler; AddPrecondition(GoapKey.incombat, false); keysConfig.ForEach(key => this.Keys.Add(key)); }
public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, ClassConfiguration classConfig, IPlayerDirection direction, NpcNameFinder npcNameFinder, StopMoving stopMoving) { this.logger = logger; this.input = input; this.wait = wait; this.addonReader = addonReader; this.playerReader = addonReader.PlayerReader; this.classConfig = classConfig; this.direction = direction; this.npcNameFinder = npcNameFinder; this.stopMoving = stopMoving; }
public LootGoal(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, StopMoving stopMoving, ClassConfiguration classConfiguration, NpcNameTargeting npcNameTargeting, CombatUtil combatUtil) { this.logger = logger; this.input = input; this.wait = wait; this.playerReader = addonReader.PlayerReader; this.areaDb = addonReader.AreaDb; this.stopMoving = stopMoving; this.bagReader = addonReader.BagReader; this.classConfiguration = classConfiguration; this.npcNameTargeting = npcNameTargeting; this.combatUtil = combatUtil; }
public WalkToCorpseGoal(ILogger logger, ConfigurableInput input, PlayerReader playerReader, IPlayerDirection playerDirection, List <WowPoint> spiritWalker, List <WowPoint> routePoints, StopMoving stopMoving, StuckDetector stuckDetector, IPPather pather) { this.logger = logger; this.input = input; this.playerReader = playerReader; this.playerDirection = playerDirection; this.stopMoving = stopMoving; this.routePoints = routePoints.ToList(); this.spiritWalkerPath = spiritWalker.ToList(); this.stuckDetector = stuckDetector; this.pather = pather; AddPrecondition(GoapKey.isdead, true); }
public ApproachTargetGoal(ILogger logger, ConfigurableInput input, PlayerReader playerReader, StopMoving stopMoving, StuckDetector stuckDetector) { this.logger = logger; this.input = input; this.playerReader = playerReader; this.stopMoving = stopMoving; this.stuckDetector = stuckDetector; AddPrecondition(GoapKey.hastarget, true); AddPrecondition(GoapKey.targetisalive, true); AddPrecondition(GoapKey.incombatrange, false); AddEffect(GoapKey.incombatrange, true); }
public SkinningGoal(ILogger logger, ConfigurableInput input, AddonReader addonReader, Wait wait, StopMoving stopMoving, NpcNameTargeting npcNameTargeting, CombatUtil combatUtil) { this.logger = logger; this.input = input; this.playerReader = addonReader.PlayerReader; this.wait = wait; this.stopMoving = stopMoving; this.bagReader = addonReader.BagReader; this.equipmentReader = addonReader.EquipmentReader; this.npcNameTargeting = npcNameTargeting; this.combatUtil = combatUtil; AddPrecondition(GoapKey.incombat, false); AddPrecondition(GoapKey.shouldskin, true); AddEffect(GoapKey.shouldskin, false); }
public AdhocGoal(ILogger logger, ConfigurableInput input, KeyAction key, PlayerReader playerReader, StopMoving stopMoving, CastingHandler castingHandler) { this.logger = logger; this.input = input; this.stopMoving = stopMoving; this.playerReader = playerReader; this.key = key; this.castingHandler = castingHandler; if (key.InCombat == "false") { AddPrecondition(GoapKey.incombat, false); } else if (key.InCombat == "true") { AddPrecondition(GoapKey.incombat, true); } this.Keys.Add(key); }
public ApproachTargetGoal(ILogger logger, ConfigurableInput input, Wait wait, PlayerReader playerReader, StopMoving stopMoving) { this.logger = logger; this.input = input; this.wait = wait; this.playerReader = playerReader; this.stopMoving = stopMoving; lastPlayerDistance = 0; lastPlayerLocation = playerReader.PlayerLocation; initialTargetGuid = playerReader.TargetGuid; initialMinRange = 0; AddPrecondition(GoapKey.hastarget, true); AddPrecondition(GoapKey.targetisalive, true); AddPrecondition(GoapKey.incombatrange, false); AddEffect(GoapKey.incombatrange, true); }
public SkinningGoal(ILogger logger, ConfigurableInput input, PlayerReader playerReader, BagReader bagReader, EquipmentReader equipmentReader, StopMoving stopMoving, ClassConfiguration classConfiguration, NpcNameFinder npcNameFinder) { this.logger = logger; this.input = input; this.playerReader = playerReader; this.stopMoving = stopMoving; this.bagReader = bagReader; this.equipmentReader = equipmentReader; this.classConfiguration = classConfiguration; this.npcNameFinder = npcNameFinder; AddPrecondition(GoapKey.incombat, false); AddPrecondition(GoapKey.shouldskin, true); AddEffect(GoapKey.shouldskin, false); outOfCombat = playerReader.PlayerBitValues.PlayerInCombat; }
public PullTargetGoal(ILogger logger, ConfigurableInput input, PlayerReader playerReader, NpcNameFinder npcNameFinder, StopMoving stopMoving, CastingHandler castingHandler, StuckDetector stuckDetector, ClassConfiguration classConfiguration) { this.logger = logger; this.input = input; this.playerReader = playerReader; this.npcNameFinder = npcNameFinder; this.stopMoving = stopMoving; this.castingHandler = castingHandler; this.stuckDetector = stuckDetector; this.classConfiguration = classConfiguration; AddPrecondition(GoapKey.incombat, false); AddPrecondition(GoapKey.hastarget, true); AddPrecondition(GoapKey.pulled, false); AddPrecondition(GoapKey.withinpullrange, true); AddPrecondition(GoapKey.isswimming, false); AddEffect(GoapKey.pulled, true); this.classConfiguration.Pull.Sequence.Where(k => k != null).ToList().ForEach(key => this.Keys.Add(key)); }
public FollowRouteGoal(ILogger logger, ConfigurableInput input, PlayerReader playerReader, IPlayerDirection playerDirection, List <WowPoint> points, StopMoving stopMoving, NpcNameFinder npcNameFinder, IBlacklist blacklist, StuckDetector stuckDetector, ClassConfiguration classConfiguration, IPPather pather) { this.logger = logger; this.input = input; this.playerReader = playerReader; this.playerDirection = playerDirection; this.stopMoving = stopMoving; this.pointsList = points; this.npcNameFinder = npcNameFinder; this.blacklist = blacklist; this.stuckDetector = stuckDetector; this.classConfiguration = classConfiguration; this.pather = pather; if (classConfiguration.Mode != Mode.AttendedGather) { AddPrecondition(GoapKey.incombat, false); } }
public PullTargetGoal(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, StopMoving stopMoving, CastingHandler castingHandler, StuckDetector stuckDetector, ClassConfiguration classConfiguration) { this.logger = logger; this.input = input; this.wait = wait; this.addonReader = addonReader; this.playerReader = addonReader.PlayerReader; this.stopMoving = stopMoving; this.castingHandler = castingHandler; this.stuckDetector = stuckDetector; this.classConfiguration = classConfiguration; classConfiguration.Pull.Sequence.Where(k => k != null).ToList().ForEach(key => Keys.Add(key)); AddPrecondition(GoapKey.targetisalive, true); AddPrecondition(GoapKey.incombat, false); AddPrecondition(GoapKey.hastarget, true); AddPrecondition(GoapKey.pulled, false); AddPrecondition(GoapKey.withinpullrange, true); AddEffect(GoapKey.pulled, true); }
public CombatGoal(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, StopMoving stopMoving, ClassConfiguration classConfiguration, CastingHandler castingHandler) { this.logger = logger; this.input = input; this.wait = wait; this.addonReader = addonReader; this.playerReader = addonReader.PlayerReader; this.stopMoving = stopMoving; this.classConfiguration = classConfiguration; this.castingHandler = castingHandler; AddPrecondition(GoapKey.incombat, true); AddPrecondition(GoapKey.hastarget, true); AddPrecondition(GoapKey.targetisalive, true); AddPrecondition(GoapKey.incombatrange, true); AddEffect(GoapKey.producedcorpse, true); AddEffect(GoapKey.targetisalive, false); AddEffect(GoapKey.hastarget, false); classConfiguration.Combat.Sequence.Where(k => k != null).ToList().ForEach(key => Keys.Add(key)); }
public PostKillLootGoal(ILogger logger, ConfigurableInput input, PlayerReader playerReader, BagReader bagReader, StopMoving stopMoving, ClassConfiguration classConfiguration, NpcNameFinder npcNameFinder) : base(logger, input, playerReader, bagReader, stopMoving, classConfiguration, npcNameFinder) { }
public PostKillLootGoal(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, StopMoving stopMoving, ClassConfiguration classConfiguration, NpcNameTargeting npcNameTargeting, CombatUtil combatUtil) : base(logger, input, wait, addonReader, stopMoving, classConfiguration, npcNameTargeting, combatUtil) { }