Class KnockoutWeaponPlan
java.lang.Object
privbot.mechanics.KnockoutWeaponPlan
Frame-bound gear proposals for the KO-weapon decision. No equip is dispatched or assumed successful.
- Since:
- 1.2.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic KnockoutWeaponPlan.Planplan(PvpFightHistory.View fight, KnockoutWeaponDecision.Decision decision, Set<Integer> koIds, GearSetup mainSetup, Boolean mainSwitchAllowed, PvpArbiter.Context arbiter) Bind a same-tick KO decision to exact server-verified weapon IDs and frame containers.
-
Method Details
-
plan
public static KnockoutWeaponPlan.Plan plan(PvpFightHistory.View fight, KnockoutWeaponDecision.Decision decision, Set<Integer> koIds, GearSetup mainSetup, Boolean mainSwitchAllowed, PvpArbiter.Context arbiter) Bind a same-tick KO decision to exact server-verified weapon IDs and frame containers. A return-to-main proposal requires a nonempty worn setup with a different weapon in slot 3. Its pieces must all be obtainable; a partial or accepted equip is never considered a completed switch. Caller-supplied decision facts, including the special episode, attack timing, KO risk and confirmed fire, must describe this same observation.mainSwitchAllowedmust be true only when no return switch is in flight or backed off; use a retainedSwitchCheckand record accepted gear sends separately.
-