Class GameEndedEvent

  • All Implemented Interfaces:
    IEvent

    public final class GameEndedEvent
    extends 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.
    • 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.