Packages

c

net.psforever.objects.vital.resolution

DamageResistCalculations

abstract class DamageResistCalculations[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 and applyFunc's input; never has to be defined explicitly, but will be checked upon object definition

Source
DamageResistCalculations.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DamageResistCalculations
  2. ResolutionCalculations
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DamageResistCalculations(calcFunc: (ResolvedProjectile) => (Int, Int) => A, applyFunc: (A, ResolvedProjectile) => Output)

    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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def Calculate(damages: Selector, resistances: Form, data: ResolvedProjectile): 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 ResolvedProjectile information

    returns

    a function literal that encapsulates delayed modification instructions for certain objects

    Definition Classes
    DamageResistCalculationsResolutionCalculations
  5. def Sample(damages: Selector, resistances: Form, data: ResolvedProjectile): A

    An intermediate step of the normal Calculate operation that retrieves the damage values in their transitory form.

    An intermediate step of the normal Calculate operation that retrieves the damage values in their transitory form.

    damages

    the function that calculations raw damage values

    resistances

    the function that calculates resistance values

    data

    a historical projectile interaction; the origin of the data used to extract damage and resistance values

    returns

    the transitory form of the modified damage(s); usually, a single Int value or a tuple of Int values

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from ResolutionCalculations

Inherited from AnyRef

Inherited from Any

Ungrouped