Class GameEndedEvent

  • All Implemented Interfaces:
    IEvent

    public final class GameEndedEvent
    extends java.lang.Object
    implements IEvent
    Event occurring when game has just ended.
    • Constructor Summary

      Constructors 
      Constructor Description
      GameEndedEvent​(int numberOfRounds, BotResults results)
      Initializes a new instance of the GameEndedEvent class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNumberOfRounds()
      Returns the number of rounds played.
      BotResults getResults()
      Returns the results of the battle.
      • Methods inherited from class java.lang.Object

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

      • GameEndedEvent

        public GameEndedEvent​(int numberOfRounds,
                              BotResults results)
        Initializes a new instance of the GameEndedEvent class.
        Parameters:
        numberOfRounds - is the number of rounds played.
        results - is the bot results of the battle.
    • Method Detail

      • getNumberOfRounds

        public int getNumberOfRounds()
        Returns the number of rounds played.
        Returns:
        The number of rounds played.
      • getResults

        public BotResults getResults()
        Returns the results of the battle.
        Returns:
        The results of the battle.