Class GeneratorCompletedEvent


  • public final class GeneratorCompletedEvent
    extends Event
    Called when a Generator was repaired. It contains the Generator itself and the List of Survivors that were present when it was repaired to 100%.
    • Field Detail

      • generator

        public final Generator generator
        The Generator which was completed.
    • Constructor Detail

      • GeneratorCompletedEvent

        public GeneratorCompletedEvent​(Game game,
                                       Generator generator)
    • Method Detail

      • getRepairing

        public java.util.ArrayList<Survivor> getRepairing()
        Gets a copy of the Survivors who were repairing the Generator when it was fully repaired.
        Returns:
        A copy of the Survivors.