Class DeathEvent

  • All Implemented Interfaces:
    IEvent

    public final class DeathEvent
    extends BotEvent
    Event occurring when your bot has died.
    • Constructor Summary

      Constructors 
      Constructor Description
      DeathEvent​(int turnNumber)
      Initializes a new instance of the DeathEvent class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • DeathEvent

        public DeathEvent​(int turnNumber)
        Initializes a new instance of the DeathEvent class.
        Parameters:
        turnNumber - is the turn number when your bot died.
    • Method Detail

      • isCritical

        public boolean isCritical()
        Indicates if this event is critical, and hence should not be removed from event queue when it gets old.

        This event is critical.

        Overrides:
        isCritical in class BotEvent
        Returns:
        true