final case class DamageInteraction(target: SourceEntry, hitPos: Vector3, cause: DamageReason, resolution: base.DamageResolution.Value, hitTime: Long = System.currentTimeMillis()) extends Product with Serializable
The recorded encounter of a damage source and a damageable target.
- target
the original affected target; not necessarily the currently affected target
- hitPos
the coordinate location where the damage was inflicted
- cause
the method by which the damage was produced
- resolution
how the damage is being processed
- hitTime
when the interaction originally occurred; defaults to
System.currentTimeMills()
at object creation
- Source
- DamageInteraction.scala
- Alphabetic
- By Inheritance
- DamageInteraction
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DamageInteraction(target: SourceEntry, hitPos: Vector3, cause: DamageReason, resolution: base.DamageResolution.Value, hitTime: Long = System.currentTimeMillis())
- target
the original affected target; not necessarily the currently affected target
- hitPos
the coordinate location where the damage was inflicted
- cause
the method by which the damage was produced
- resolution
how the damage is being processed
- hitTime
when the interaction originally occurred; defaults to
System.currentTimeMills()
at object creation
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
- def adversarial: Option[Adversarial]
If the cause of the original interaction can be attributed to some agency.
If the cause of the original interaction can be attributed to some agency.
- returns
a connection between offender, victim, and method
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def calculate(model: DamageAndResistance)(target: PlanetSideGameObject with FactionAffinity): DamageResult
Process the primary parameters from the interaction in the context a custom damage processing method by which to temporarily reframe the interaction and produce a application function literal where the specified target entity can be applied to it.
Process the primary parameters from the interaction in the context a custom damage processing method by which to temporarily reframe the interaction and produce a application function literal where the specified target entity can be applied to it.
- model
the custom processing method
- target
the target entity
- returns
the outcome of the interaction under the given re-framing
- def calculate(dtype: base.DamageType.Value): Output
Process the primary parameters from the interaction including a custom category of damage by which to temporarily reframe the interaction and produce the application function literal that can have a target entity applied to it.
Process the primary parameters from the interaction including a custom category of damage by which to temporarily reframe the interaction and produce the application function literal that can have a target entity applied to it.
- returns
the function that applies changes to a target entity
- def calculate(): Output
Process the primary parameters from the interaction and produce the application function literal that can have a target entity applied to it.
Process the primary parameters from the interaction and produce the application function literal that can have a target entity applied to it.
- returns
the function that applies changes to a target entity
- val cause: DamageReason
- 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 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()
- val hitPos: Vector3
- val hitTime: Long
- 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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val resolution: base.DamageResolution.Value
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val target: SourceEntry
- 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()