Class/Object

net.psforever.objects.ballistics

Projectile

Related Docs: object Projectile | package ballistics

Permalink

final case class Projectile(profile: ProjectileDefinition, tool_def: ToolDefinition, fire_mode: FireModeDefinition, owner: SourceEntry, attribute_to: Int, shot_origin: Vector3, shot_angle: Vector3, fire_time: Long = System.nanoTime) extends Product with Serializable

A summation of weapon (Tool) discharge.

profile

an explanation of the damage that can be performed by this discharge

tool_def

the weapon that caused this discharge

fire_mode

the current fire mode of the tool used

owner

the agency that caused the weapon to produce this projectile; most often a player (PlayerSource)

attribute_to

an object ID that refers to the method of death that would be reported; usually the same as tool_def.ObjectId; if not, then it is a type of vehicle (and owner should have a positive seated field)

shot_origin

where the projectile started

shot_angle

in which direction the projectile was aimed when it was discharged

fire_time

when the weapon discharged was recorded; defaults to System.nanoTime

Source
Projectile.scala
See also

ProjectileDefinition
ToolDefinition
FireModeDefinition
SourceEntry
PlayerSource

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Projectile
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Projectile(profile: ProjectileDefinition, tool_def: ToolDefinition, fire_mode: FireModeDefinition, owner: SourceEntry, attribute_to: Int, shot_origin: Vector3, shot_angle: Vector3, fire_time: Long = System.nanoTime)

    Permalink

    profile

    an explanation of the damage that can be performed by this discharge

    tool_def

    the weapon that caused this discharge

    fire_mode

    the current fire mode of the tool used

    owner

    the agency that caused the weapon to produce this projectile; most often a player (PlayerSource)

    attribute_to

    an object ID that refers to the method of death that would be reported; usually the same as tool_def.ObjectId; if not, then it is a type of vehicle (and owner should have a positive seated field)

    shot_origin

    where the projectile started

    shot_angle

    in which direction the projectile was aimed when it was discharged

    fire_time

    when the weapon discharged was recorded; defaults to System.nanoTime

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Projectile to any2stringadd[Projectile] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Projectile, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Projectile to ArrowAssoc[Projectile] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def Miss(): Unit

    Permalink
  7. def Resolve(): Unit

    Permalink

    Mark the projectile as being "encountered" or "managed" at least once.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. val attribute_to: Int

    Permalink

    an object ID that refers to the method of death that would be reported; usually the same as tool_def.ObjectId; if not, then it is a type of vehicle (and owner should have a positive seated field)

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val current: SimpleWorldEntity

    Permalink

    Information about the current world coordinates and orientation of the projectile

  12. def ensuring(cond: (Projectile) ⇒ Boolean, msg: ⇒ Any): Projectile

    Permalink
    Implicit information
    This member is added by an implicit conversion from Projectile to Ensuring[Projectile] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (Projectile) ⇒ Boolean): Projectile

    Permalink
    Implicit information
    This member is added by an implicit conversion from Projectile to Ensuring[Projectile] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): Projectile

    Permalink
    Implicit information
    This member is added by an implicit conversion from Projectile to Ensuring[Projectile] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): Projectile

    Permalink
    Implicit information
    This member is added by an implicit conversion from Projectile to Ensuring[Projectile] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. val fire_mode: FireModeDefinition

    Permalink

    the current fire mode of the tool used

  19. val fire_time: Long

    Permalink

    when the weapon discharged was recorded; defaults to System.nanoTime

  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Projectile to StringFormat[Projectile] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  23. def isMiss: Boolean

    Permalink
  24. def isResolved: Boolean

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. val owner: SourceEntry

    Permalink

    the agency that caused the weapon to produce this projectile; most often a player (PlayerSource)

  29. val profile: ProjectileDefinition

    Permalink

    an explanation of the damage that can be performed by this discharge

  30. val shot_angle: Vector3

    Permalink

    in which direction the projectile was aimed when it was discharged

  31. val shot_origin: Vector3

    Permalink

    where the projectile started

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. val tool_def: ToolDefinition

    Permalink

    the weapon that caused this discharge

  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( ... )
  37. def [B](y: B): (Projectile, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Projectile to ArrowAssoc[Projectile] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Projectile to any2stringadd[Projectile]

Inherited by implicit conversion StringFormat from Projectile to StringFormat[Projectile]

Inherited by implicit conversion Ensuring from Projectile to Ensuring[Projectile]

Inherited by implicit conversion ArrowAssoc from Projectile to ArrowAssoc[Projectile]

Ungrouped