Class BotDeathEvent

  • All Implemented Interfaces:
    IEvent

    public final class BotDeathEvent
    extends BotEvent
    Event occurring when another bot has died.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getVictimId()
      Returns the id of the bot that has died.
      • Methods inherited from class java.lang.Object

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

      • BotDeathEvent

        public BotDeathEvent​(int turnNumber,
                             int victimId)
        Initializes a new instance of the BotDeathEvent class.
        Parameters:
        turnNumber - is the turn number when the bot died.
        victimId - is the id of the bot that has died.
    • Method Detail

      • getVictimId

        public int getVictimId()
        Returns the id of the bot that has died.
        Returns:
        The id of the bot that has died.