Class BotEvent

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BotEvent​(int turnNumber)
      Initializes a new instance of the Event class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getTurnNumber()
      Returns the turn number when this event occurred.
      boolean isCritical()
      Indicates if this event is critical, and hence should not be removed from event queue when it gets old.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BotEvent

        protected BotEvent​(int turnNumber)
        Initializes a new instance of the Event class.
        Parameters:
        turnNumber - is the turn number when this event occurred.
    • Method Detail

      • getTurnNumber

        public int getTurnNumber()
        Returns the turn number when this event occurred.
        Returns:
        The turn number when this event occurred.
      • isCritical

        public boolean isCritical()
        Indicates if this event is critical, and hence should not be removed from event queue when it gets old.
        Returns:
        true if this event is critical; false otherwise. Default is false.