Class PvpActionPlanner
java.lang.Object
privbot.mechanics.PvpActionPlanner
Composes detached consumption decisions with the PvP action-family arbiter. It proposes actions only; callers
must dispatch on the worker and prove the resulting game state independently.
- Since:
- 1.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe original consume decision is explanatory; dispatch only non-held entries fromPvpActionPlanner.Plan.actions(). -
Method Summary
Modifier and TypeMethodDescriptionstatic PvpActionPlanner.Planplan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, List<PvpArbiter.Action> otherActions) The fight view, consume state, arbiter facts and other proposed actions must describe the same tick.static PvpActionPlanner.Planplan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, Boolean specSetReady, List<PvpArbiter.Action> otherActions) As above, with same-tick proof that the special set is worn.static PvpActionPlanner.Planplan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, Boolean specSetReady, PvpMovement.Decision movement, List<PvpArbiter.Action> otherActions) Also arbitrate a same-tick movement proposal with its proven destination.static PvpActionPlanner.Planplan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, Boolean specSetReady, PvpMovement.Decision movement, StylePlanner.Decision style, List<PvpArbiter.Action> otherActions) Also turn a same-tick, frame-derived style decision into gear proposals.static PvpActionPlanner.Planplan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, List<PvpArbiter.Action> otherActions) As above, also translating a same-tick special decision into an arm or disarm proposal when required.static PvpActionPlanner.PlanplanWithSpecialSet(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, GearSetup specialSet, PvpMovement.Decision movement, StylePlanner.Decision style, List<PvpArbiter.Action> otherActions) Derive special-set readiness from the exact frame being planned, avoiding a stale caller-retained flag.static BooleanspecialSetReady(FightFrame frame, GearSetup setup) Compares a nonempty special set with this frame's actual equipment.
-
Method Details
-
specialSetReady
Compares a nonempty special set with this frame's actual equipment. Null means the setup or equipment is unavailable; false means readable equipment is missing at least one configured item. Use the same frame as the fight view passed toplan, and do not treat an accepted equip as a worn item. -
planWithSpecialSet
public static PvpActionPlanner.Plan planWithSpecialSet(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, GearSetup specialSet, PvpMovement.Decision movement, StylePlanner.Decision style, List<PvpArbiter.Action> otherActions) Derive special-set readiness from the exact frame being planned, avoiding a stale caller-retained flag. -
plan
public static PvpActionPlanner.Plan plan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, List<PvpArbiter.Action> otherActions) The fight view, consume state, arbiter facts and other proposed actions must describe the same tick. The consume state's inventory must be the same snapshot held by the fight frame. Food, potion, orb and movement proposals must use their dedicated decisions, avoiding duplicate dispatches and preserving their evidence. Without a special decision, attacks require an observed unarmed orb. -
plan
public static PvpActionPlanner.Plan plan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, List<PvpArbiter.Action> otherActions) As above, also translating a same-tick special decision into an arm or disarm proposal when required. Other phases do not themselves dispatch an orb action. -
plan
public static PvpActionPlanner.Plan plan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, Boolean specSetReady, List<PvpArbiter.Action> otherActions) As above, with same-tick proof that the special set is worn. An armed special cannot attack without it. -
plan
public static PvpActionPlanner.Plan plan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, Boolean specSetReady, PvpMovement.Decision movement, List<PvpArbiter.Action> otherActions) Also arbitrate a same-tick movement proposal with its proven destination. -
plan
public static PvpActionPlanner.Plan plan(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, Boolean specSetReady, PvpMovement.Decision movement, StylePlanner.Decision style, List<PvpArbiter.Action> otherActions) Also turn a same-tick, frame-derived style decision into gear proposals.
-