Interface IReductionFunction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IReductionFunction
An IReductionFunction is used by DamageContainer instances.
This allows sequential modification of damage reduction values to be stored and later invoked before actual reductions are applied to the damage sequence.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    modify(DamageContainer container, float reductionIn)
    Consumes an existing reduction value and produces a modified value.
  • Method Details

    • modify

      float modify(DamageContainer container, float reductionIn)
      Consumes an existing reduction value and produces a modified value.
      Parameters:
      container - the DamageContainer representing the damage sequence values for the reduction being modified
      reductionIn - the initial or preceding reduction value to this operation
      Returns:
      the new reduction value