Object/Class

net.psforever.objects.vital.damage

DamageCalculations

Related Docs: class DamageCalculations | package damage

Permalink

object DamageCalculations

Source
DamageCalculations.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DamageCalculations
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type DamageWithModifiersType = (DamageProfile, List[DamageProfile]) ⇒ Int

    Permalink
  2. type DamagesType = (Projectile, Int, Float) ⇒ Int

    Permalink
  3. type DistanceType = (ResolvedProjectile) ⇒ Float

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def DamageAgainstAircraft(profile: DamageProfile): Int

    Permalink
  5. def DamageAgainstExoSuit(profile: DamageProfile): Int

    Permalink
  6. def DamageAgainstMaxSuit(profile: DamageProfile): Int

    Permalink
  7. def DamageAgainstUnknown(profile: DamageProfile): Int

    Permalink
  8. def DamageAgainstVehicle(profile: DamageProfile): Int

    Permalink
  9. def DamageWithModifiers(extractor: (DamageProfile) ⇒ Int)(base: DamageProfile, modifiers: List[DamageProfile]): Int

    Permalink

    Get damage information from a series of profiles related to the weapon discharge.

    Get damage information from a series of profiles related to the weapon discharge.

    extractor

    the function that recovers the damage value

    base

    the profile from which primary damage is to be selected

    modifiers

    alternate profiles that will modify the base damage value

    returns

    the accumulated damage value

  10. def DirectHitDamageWithDegrade(projectile: Projectile, rawDamage: Int, distance: Float): Int

    Permalink

    Modify the base damage based on the degrade distance of the projectile type and its maximum effective distance.

    Modify the base damage based on the degrade distance of the projectile type and its maximum effective distance. Calls out "direct hit" damage but is recycled for other damage types as well.

    projectile

    information about the weapon discharge (itself)

    rawDamage

    the accumulated amount of damage

    distance

    how far the source was from the target

    returns

    the modified damage value

  11. def DistanceBetweenOriginAndImpact(data: ResolvedProjectile): Float

    Permalink
  12. def DistanceBetweenTargetandSource(data: ResolvedProjectile): Float

    Permalink
  13. def DistanceFromExplosionToTarget(data: ResolvedProjectile): Float

    Permalink
  14. def LashDamage(projectile: Projectile, rawDamage: Int, distance: Float): Int

    Permalink

    Calculate a lash damage value.

    Calculate a lash damage value. The target needs to be more than five meters away. Since lash damage occurs after the direct hit projectile's damage begins to degrade, the minimum of five less than distance or zero is calculated.

    projectile

    information about the weapon discharge (itself)

    rawDamage

    the accumulated amount of damage

    distance

    how far the source was from the target

    returns

    the modified damage value

  15. def NoDamage(projectile: Projectile, rawDamage: Int, distance: Float): Int

    Permalink
  16. def NoDamageAgainst(profile: DamageProfile): Int

    Permalink
  17. def NoDistance(data: ResolvedProjectile): Float

    Permalink
  18. def SameHit(projectile: Projectile, rawDamage: Int, distance: Float): Int

    Permalink

    Use an unmodified damage value.

    Use an unmodified damage value.

    projectile

    information about the weapon discharge (itself); unused

    rawDamage

    the accumulated amount of damage

    distance

    how far the source was from the target; unused

    returns

    the rawDamage value

  19. def SplashDamageWithRadialDegrade(projectile: Projectile, rawDamage: Int, distance: Float): Int

    Permalink

    Modify the base damage based on the radial distance of the target from the center of an explosion.

    Modify the base damage based on the radial distance of the target from the center of an explosion. Calls out "splash" damage exclusively.

    projectile

    information about the weapon discharge (itself)

    rawDamage

    the accumulated amount of damage

    distance

    how far the origin of the explosion was from the target

    returns

    the modified damage value

  20. def TooFar(data: ResolvedProjectile): Float

    Permalink
  21. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  22. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped