Class GetRepairSpeedEvent


  • public final class GetRepairSpeedEvent
    extends ModifiableEvent<java.lang.Double>
    Determines the speed of the repair progress. Contains the Survivor, and the Generator being repaired.
    • Constructor Detail

      • GetRepairSpeedEvent

        public GetRepairSpeedEvent​(Survivor survivor,
                                   Generator generator)
    • Method Detail

      • getPlayersDebuff

        public boolean getPlayersDebuff()
        Gets whether the repairing Survivors should suffer from the speed penalty they receive when more than 1 Survivor is repairing the same Generator.
        Returns:
        True if the penalty is activated.
      • setPlayersDebuff

        public void setPlayersDebuff​(boolean value)
        Sets whether the repairing Survivors should suffer from the speed penalty they receive when more than 1 Survivor is repairing the same Generator.
        Parameters:
        value - The new value.
      • getGenerator

        public Generator getGenerator()
        Gets the Generator being repaired.
        Returns:
        The Generator being repaired.