Uses of Class
privbot.mechanics.Commitment

Packages that use Commitment
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 Commitment in privbot.mechanics

    Methods in privbot.mechanics that return Commitment
    Modifier and Type
    Method
    Description
    Commitment.after(int tick, int opponentId, String commitSet)
    Folds one plan's commit set, decided on tick against opponentId (-1: no opponent in the state, which keeps the one we have).
    Commitment.after(int tick, int opponentId, String commitSet, int specFiredTick)
    As above, with specFiredTick: the tick the last spec fired as the decision on this state saw it, or NEVER (the engine passes NEVER while the orb is still latched, so an armed read lagging the fire is that spec, not a second one).
    static Commitment
    Commitment.empty()
     
    Commitment.facing(int opponentId)
    The commitment as a decision on a state against opponentId reads it: the same one, or nothing when that is a different opponent from the one it belongs to (a new fight; -1 is no opponent, which is a one-tick blip and keeps it).