Class ConsumePlanner.State
java.lang.Object
privbot.mechanics.ConsumePlanner.State
- Enclosing class:
ConsumePlanner
Detached current inputs from one decision tick. Null values are unreadable, not zero or an empty container.
Risk and idle predictions must be derived for this same tick; a retained prior-tick assessment is not current.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Integerfinal Integerfinal Integerfinal Integerfinal Integerfinal ItemContainerSnapshotfinal Integerfinal Integerfinal Integerfinal Integerfinal Integerfinal Integerfinal Integerfinal KnockoutRisk.Assessmentfinal Integerfinal Integerfinal intfinal Integer -
Constructor Summary
ConstructorsConstructorDescriptionState(int tick, Integer hp, Integer maxHp, Integer prayer, Integer worstHit, Integer lastFood, Integer lastCombo, Integer lastPotion, Integer idleTick, Integer deferredSince, ItemContainerSnapshot inventory, KnockoutRisk.Assessment risk, Integer attack, Integer attackReal, Integer strength, Integer strengthReal, Integer magic, Integer magicReal) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsumePlanner.StatefromFrame(FightFrame frame, Integer worstHit, Integer lastFood, Integer lastCombo, Integer lastPotion, Integer idleTick, Integer deferredSince, KnockoutRisk.Assessment risk) Build from a same-tick fight frame.
-
Field Details
-
tick
public final int tick -
hp
-
maxHp
-
prayer
-
worstHit
-
lastFood
-
lastCombo
-
lastPotion
-
idleTick
-
deferredSince
-
inventory
-
risk
-
attack
-
attackReal
-
strength
-
strengthReal
-
magic
-
magicReal
-
-
Constructor Details
-
State
public State(int tick, Integer hp, Integer maxHp, Integer prayer, Integer worstHit, Integer lastFood, Integer lastCombo, Integer lastPotion, Integer idleTick, Integer deferredSince, ItemContainerSnapshot inventory, KnockoutRisk.Assessment risk, Integer attack, Integer attackReal, Integer strength, Integer strengthReal, Integer magic, Integer magicReal)
-
-
Method Details
-
fromFrame
public static ConsumePlanner.State fromFrame(FightFrame frame, Integer worstHit, Integer lastFood, Integer lastCombo, Integer lastPotion, Integer idleTick, Integer deferredSince, KnockoutRisk.Assessment risk) Build from a same-tick fight frame. Timers, history and predictions remain caller-owned.
-