abstract class DamageResistanceCalculations[A] extends ResolutionCalculations
A specific implementation of ResolutionCalculations
that deals with
the damage value and the resistance value in a specific manner.
(The input type of the function literal output of calcFunc
.)
- A
an internal type that converts between
calcFunc
's output andapplyFunc
's input; never has to be defined explicitly but will be checked at compile time
- Source
- DamageResistanceCalculations.scala
- See also
DamageCalculations.WithModifiers
- Alphabetic
- By Inheritance
- DamageResistanceCalculations
- ResolutionCalculations
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DamageResistanceCalculations(calcFunc: (DamageInteraction) => (Int, Int) => A, applyFunc: (A, DamageInteraction) => Output, modifiersFunc: (Selector, DamageInteraction) => Int = DamageCalculations.WithModifiers)
- calcFunc
a function literal that retrieves the function that factors the affects of damage and resistance values
- applyFunc
a function literal that applies the final modified values to a target object
- modifiersFunc
a function literal that extracts and modifies a numeric damage value; even if no modifiers are to be used, the base damage value needs to be extracted; defaults to a function that utilizes all of the available information
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def calculate(damages: Selector, resistances: Format, data: DamageInteraction): Output
The exposed entry for the calculation function literal defined by this base.
The exposed entry for the calculation function literal defined by this base.
- damages
the function literal that accumulates and calculates damages
- resistances
the function literal that collects resistance values
- data
the historical damage information
- returns
a function literal that encapsulates delayed modification instructions for certain objects
- Definition Classes
- DamageResistanceCalculations → ResolutionCalculations
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()