# PSF-LoginServer - master - net.psforever.objects.vital.interaction
PSF - LoginServer - master - net.psforever.objects.vital.interaction
Keywords: PSF LoginServer master net.psforever.objects.vital.interaction

PSF-LoginServer - master < Back


# Packages

-  package root
  Definition Classes
    root
-  package net
  Definition Classes
    root
-  package psforever
  Definition Classes
    net
-  package objects
  Definition Classes
    psforever
-  package vital
  Definition Classes
    objects
-  package base
  Definition Classes
    vital
-  package collision
  Definition Classes
    vital
-  package damage
  Definition Classes
    vital
-  package environment
  Definition Classes
    vital
-  package etc
  Definition Classes
    vital
-  package interaction
  Definition Classes
    vital
- Adversarial
- DamageInteraction
- DamageResult
-  package projectile
  Definition Classes
    vital
-  package prop
  Definition Classes
    vital
-  package resistance
  Definition Classes
    vital
-  package resolution
  Definition Classes
    vital

p

net.psforever.objects.vital

# interaction

#### package interaction


Ordering

1. Alphabetic

Visibility

1. Public
2. Protected

### Type Members

1.  final case class Adversarial (attacker: SourceEntry, defender: SourceEntry, implement: Int) extends Product with Serializable

   But one thing's sure.

   But one thing's sure. The player is hurt, attacked, and somebody's responsible.

   attacker

     the source of the damage

   defender

     the recipient of the damage

   implement

     how the damage was invoked; the object id of the method of punishment, used for reporting

2.  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.

   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

3.  final case class DamageResult (targetBefore: SourceEntry, targetAfter: SourceEntry, interaction: DamageInteraction) extends Product with Serializable

   The outcome of the damage interaction, after all the numbers have been processed and properly applied.

### Value Members

1.  object DamageInteraction extends Serializable

### Ungrouped