Uses of Enum
privbot.mechanics.CombatStyle
Packages that use CombatStyle
Package
Description
Pure game-mechanic rules shared by plugins on every server: the same name and meaning on Impact, Elorin, Orion,
SpawnPK and Roat Pkz.
-
Uses of CombatStyle in privbot.mechanics
Subclasses with type arguments of type CombatStyle in privbot.mechanicsModifier and TypeClassDescriptionenumThe three combat styles and the overhead prayer that blocks each.Fields in privbot.mechanics declared as CombatStyleModifier and TypeFieldDescriptionfinal CombatStylePvpFightHistory.Inputs.opponentWeaponfinal CombatStyleCommitment.styleThe style we are committed to, or null; and the tick it was chosen.final CombatStyleThreatMemory.Hit.styleMethods in privbot.mechanics that return CombatStyleModifier and TypeMethodDescriptionAttackCues.animation(int id) OverheadWatch.blocked(int tick) The one style their overhead has blocked for at least the debounce window.static CombatStyleStylePolicy.choose(Set<CombatStyle> available, Set<CombatStyle> blocked, Map<CombatStyle, Integer> weights, Random random) Picks an available style that is not blocked, weighted.static CombatStyleA name-based style guess, or null for an unknown name; it is not proof of an opponent's next attack.CueTimeline.current()AttackHistory.firedStyle()Style of the last confirmed fire, or null when it could not be classified.ThreatMemory.View.ledger()Null when the current hit read is unavailable or no counted hit remains.AttackCues.projectile(int id) AttackFireDetector.Result.style()IncomingStyleDecision.Decision.style()PvpArbiter.Action.style()StylePlanner.Candidate.style()static CombatStyleReturns the enum constant of this type with the specified name.static CombatStyle[]CombatStyle.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in privbot.mechanics that return types with arguments of type CombatStyleModifier and TypeMethodDescriptionOverheadWatch.blockedSet(int tick) Every style their overhead has blocked for at least the debounce window; empty when none, when nothing readable has been seen, or whentickis before the newest reading.static Set<CombatStyle> The styles an overhead name blocks; empty for null,"NONE"or a non-protection prayer.ThreatMemory.View.counts()static Map<Integer, CombatStyle> ElorinPvpCues.opponentAnimations()Known opponent attack animations.static Map<Integer, CombatStyle> ElorinPvpCues.ownAnimations()Known local attack animations.ThreatMemory.View.weapons()Methods in privbot.mechanics with parameters of type CombatStyleModifier and TypeMethodDescriptionAttackCues.Builder.animation(int id, CombatStyle style) AttackCues.Builder.animations(Set<Integer> ids, CombatStyle style) static PvpArbiter.ActionPvpArbiter.Action.attack(PlayerView target, CombatStyle style) Construct an attack proposal against a detached player; resolve the target again at dispatch.intOverheadWatch.blockedFor(CombatStyle style) How many readable ticks in a row their overhead has blockedstyle, regardless of the debounce; 0 when the current overhead does not block it or nothing readable has been seen.static StylePlanner.CandidateStylePlanner.candidate(CombatStyle style, GearSetup setup, FightFrame frame, Boolean blocked, Boolean outOfReach, boolean refused, boolean allowNameVariants) Derive one style candidate from a worn setup and a same-tick frame.IncomingStyleDecision.choose(Boolean dueShotReadable, CombatStyle dueShotStyle, Boolean magicTell, Boolean opponentEligible, CombatStyle opponentStyle, CombatStyle ledgerStyle) Apply the flagship priority: an avoidable due shot, active magic tell, eligible opponent, then the hit ledger.static PvpMovement.DecisionPvpMovement.decide(int tick, net.runelite.api.coords.WorldPoint us, net.runelite.api.coords.WorldPoint opponent, CombatStyle ourStyle, Boolean selfFrozen, Boolean walkInFlight, Boolean meleeThreat, Boolean opponentFrozen, Boolean pending, Boolean swingsUnseen, AttackTiming.Window stepWindow, int engageRange, int rangedDistance, long seed, Function<net.runelite.api.coords.WorldPoint, Boolean> reachable) Choose a destination using server planning tiles.static StylePlanner.DecisionStylePlanner.decide(int tick, Boolean wornReadable, List<StylePlanner.Candidate> candidates, CombatStyle preference, CombatStyle held, Integer heldSince, Integer heldBlockedTicks) Choose from configured candidates.static PvpArbiter.ActionPvpArbiter.Action.equip(CombatStyle style, StylePlanner.GearPick pick) Construct a gear proposal retaining the carried item and intended equipment slot.static IntegerAttackTiming.estimatedReady(Integer firedTick, CombatStyle style, String weapon, Integer eats, Map<String, Integer> weaponOverrides) The estimated next fire tick, or null if the fire, style, or eat count is unreadable.voidAttackHistory.fire(int tick, AttackHistory.Family family, CombatStyle style, String weapon) Record a confirmed fire.static PvpFightHistory.InputsPvpFightHistory.Inputs.fromLock(FightObservation observation, OpponentLockPolicy.Result result, CombatStyle opponentWeapon, Integer ownCycle, Integer opponentCycle, Integer attributedOpponentHit, Boolean specFired, Boolean meleeProtected, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero) Bind a lock result to an opponent from this exact observation.static PvpArbiter.ActionPvpArbiter.Action.gear(PvpArbiter.Kind kind, ItemContainerSnapshot.Item item, int equipmentSlot, CombatStyle style, String set) A fixed-set or bait gear proposal; the planner validates it against the current inventory.intOpponentAttackClock.hitLag(CombatStyle style) Median of the last nine valid attributed swing-to-hit gaps after five samples, else zero.PrayerPlanner.Options.idleStyle(CombatStyle s) The style to fall back to afterPrayerPlanner.Options.idleFallback(boolean)triggers (default none).IncomingStyleDecision.observe(List<ShotView> shots, Map<Integer, CombatStyle> shotStyles, ThreatMemory.View memory, Boolean opponentEligible, CombatStyle opponentStyle) Classify the earliest avoidable projectile aimed at the player (more than 21 and at most 60 cycles left), then applyIncomingStyleDecision.choose(java.lang.Boolean, privbot.mechanics.CombatStyle, java.lang.Boolean, java.lang.Boolean, privbot.mechanics.CombatStyle, privbot.mechanics.CombatStyle).IncomingStyleDecision.observe(FightObservation observation, ThreatMemory.View memory, Map<Integer, CombatStyle> shotStyles, int opponentIndex, CombatStyle opponentStyle) Apply incoming-style selection to one observation and its same-tick threat memory.ThreatMemory.observe(int tick, Long lockId, Integer opponentId, Boolean targetsUs, CombatStyle opponentWeapon, List<ThreatMemory.Hit> newHits, List<ThreatMemory.Tell> newTells, Boolean protectMeleeNow, Integer previousSampleTick, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero) Fold one tick.ThreatMemory.observe(FightObservation observation, Long lockId, PlayerView opponent, CombatStyle opponentWeapon, Set<Integer> verifiedMagicGraphics, Boolean protectMeleeNow, Integer previousSampleTick, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero) Fold an observer's same-tick frame and events.booleanCueTimeline.offer(CombatStyle style, int launchCycle) Accepts the cue when nothing is held orlaunchCycleis later than the held one.AttackCues.Builder.projectile(int id, CombatStyle style) static intThe attack cycle of this weapon in ticks:overrides(keys lower-cased, matched by containment, asWeaponSpeeds.parse(java.lang.String, java.util.List<java.lang.String>)produces them), then the keyword table, then the OSRS table, then the style's default.Method parameters in privbot.mechanics with type arguments of type CombatStyleModifier and TypeMethodDescriptionstatic CombatStyleStylePolicy.choose(Set<CombatStyle> available, Set<CombatStyle> blocked, Map<CombatStyle, Integer> weights, Random random) Picks an available style that is not blocked, weighted.static CombatStyleStylePolicy.choose(Set<CombatStyle> available, Set<CombatStyle> blocked, Map<CombatStyle, Integer> weights, Random random) Picks an available style that is not blocked, weighted.IncomingStyleDecision.observe(List<ShotView> shots, Map<Integer, CombatStyle> shotStyles, ThreatMemory.View memory, Boolean opponentEligible, CombatStyle opponentStyle) Classify the earliest avoidable projectile aimed at the player (more than 21 and at most 60 cycles left), then applyIncomingStyleDecision.choose(java.lang.Boolean, privbot.mechanics.CombatStyle, java.lang.Boolean, java.lang.Boolean, privbot.mechanics.CombatStyle, privbot.mechanics.CombatStyle).IncomingStyleDecision.observe(FightObservation observation, ThreatMemory.View memory, Map<Integer, CombatStyle> shotStyles, int opponentIndex, CombatStyle opponentStyle) Apply incoming-style selection to one observation and its same-tick threat memory.PvpFightHistory.observe(FightObservation observation, PvpFightHistory.Inputs in, Map<Integer, CombatStyle> shotStyles) Fold a sample before recording sends from its plan.Constructors in privbot.mechanics with parameters of type CombatStyleModifierConstructorDescriptionAction(PvpArbiter.Kind kind, String detail, CombatStyle style, String set, Boolean weaponSlot, boolean afterAttack) Candidate(CombatStyle style, int missing, Boolean obtainable, Boolean blocked, Boolean outOfReach, boolean refused) Hit(CombatStyle style, int code, int amount) Inputs(long lock, PlayerView opponent, CombatStyle opponentWeapon, Integer ownCycle, Integer opponentCycle, Integer attributedOpponentHit, Boolean specFired, Boolean meleeProtected, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero) Constructor parameters in privbot.mechanics with type arguments of type CombatStyleModifierConstructorDescriptionAttackFireDetector(Map<Integer, CombatStyle> animationStyles, Set<Integer> nonAttacks, Set<Integer> rangedGraphics) The inputs must already use the server's IDs; missing mappings must not be guessed.OpponentAttackClock(Map<Integer, CombatStyle> animations, Set<Integer> nonAttacks, Set<Integer> rangedGraphics) OwnAttackClock(Map<Integer, CombatStyle> attackAnimations, Set<Integer> nonAttackAnimations, Set<Integer> rangedGraphics) PvpFightHistory(Map<Integer, CombatStyle> ownAnimations, Map<Integer, CombatStyle> opponentAnimations, Set<Integer> nonAttackAnimations, Set<Integer> ownRangedGraphics, Set<Integer> opponentRangedGraphics, Set<Integer> magicGraphics) PvpFightHistory(Map<Integer, CombatStyle> ownAnimations, Map<Integer, CombatStyle> opponentAnimations, Set<Integer> nonAttackAnimations, Set<Integer> ownRangedGraphics, Set<Integer> opponentRangedGraphics, Set<Integer> magicGraphics, boolean energyDropMeansSpec) Enable energy-drop fire detection only when that rule has been verified for this server and session.PvpFightHistory(Map<Integer, CombatStyle> ownAnimations, Map<Integer, CombatStyle> opponentAnimations, Set<Integer> nonAttackAnimations, Set<Integer> ownRangedGraphics, Set<Integer> opponentRangedGraphics, Set<Integer> magicGraphics, boolean energyDropMeansSpec, boolean elorinWeaponNames) Also opt into the historical Elorin weapon-name style catalogue when appropriate for this server.