Class CustomEvent

  • All Implemented Interfaces:
    IEvent

    public final class CustomEvent
    extends BotEvent
    A custom event occurring when a condition has been met.
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomEvent​(int turnNumber, Condition condition)
      Initializes a new instance of the CustomEvent class.
    • Constructor Detail

      • CustomEvent

        public CustomEvent​(int turnNumber,
                           Condition condition)
        Initializes a new instance of the CustomEvent class.
        Parameters:
        turnNumber - is the turn number when the condition was met.
        condition - is the condition that has been met.
    • Method Detail

      • getCondition

        public Condition getCondition()
        Returns the condition that was met to trigger this custom event.
        Returns:
        The condition that was met to trigger this custom event.