Class WithdrawPlan.Line

java.lang.Object
privbot.hooks.bank.WithdrawPlan.Line
Enclosing class:
WithdrawPlan

public static final class WithdrawPlan.Line extends Object
One (item, quantity) pair — the shared shape, so one parser serves buy and withdraw.
  • Field Details

    • itemName

      public final String itemName
    • quantity

      public final int quantity
    • all

      public final boolean all
      True for a "withdraw everything of this" line.

      Such a line has no numeric target, so it cannot be measured the way the others are — "did the carried count reach N" has no N. It is done when one Withdraw-All has been dispatched and the count moved, which WithdrawPlan.markSatisfied(int) records.

  • Constructor Details

    • Line

      public Line(String itemName, int quantity)
  • Method Details