Interface ResignPolicy

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ResignPolicy
Policy governing whether a bot should resign incoming gameplay deliveries.

Consulted before strategy dispatch on all delivery types. When shouldResign() returns true, the handler answers with a resigning response without invoking the strategy.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ResignPolicy
    A policy that never requests resignation.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether the bot should resign the current delivery.
  • Field Details

    • NEVER

      static final ResignPolicy NEVER
      A policy that never requests resignation.
  • Method Details

    • shouldResign

      boolean shouldResign()
      Returns whether the bot should resign the current delivery.
      Returns:
      true to resign without calling strategy, false to proceed to strategy