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 PlanetSideGameObject with 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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Projectile
  2. Serializable
  3. Product
  4. Equals
  5. PlanetSideGameObject
  6. WorldEntity
  7. IdentifiableEntity
  8. Identifiable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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)

    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
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def Definition: ProjectileDefinition
    Definition Classes
    ProjectilePlanetSideGameObject
  5. def Destroyed: Boolean
    Definition Classes
    PlanetSideGameObject
  6. def Destroyed_=(state: Boolean): Boolean
    Definition Classes
    PlanetSideGameObject
  7. def Entity: WorldEntity
    Definition Classes
    PlanetSideGameObject
  8. def Entity_=(newEntity: WorldEntity): Unit
    Definition Classes
    PlanetSideGameObject
  9. def GUID: PlanetSideGUID
    Definition Classes
    IdentifiableEntityIdentifiable
  10. def GUID_=(guid: PlanetSideGUID): PlanetSideGUID
    Definition Classes
    IdentifiableEntityIdentifiable
  11. def GUID_=(guid: StalePlanetSideGUID): PlanetSideGUID

    Always intercept StalePlanetSideGUID references when attempting to mutate the GUID value.

    Always intercept StalePlanetSideGUID references when attempting to mutate the GUID value.

    guid

    the valid GUID to assign

    returns

    never returns

    Definition Classes
    IdentifiableEntity
    Exceptions thrown

    `AssigningGUIDException` always

  12. def HasGUID: Boolean

    Flag when the object has no GUID (initial condition) or is considered stale.

    Flag when the object has no GUID (initial condition) or is considered stale.

    returns

    whether the value of the GUID is a valid representation for this object

    Definition Classes
    IdentifiableEntity
  13. def Invalidate(): Unit

    Indicate that the current GUID is no longer a valid representation of the object.

    Indicate that the current GUID is no longer a valid representation of the object. Transforms whatever the current GUID is into a StalePlanetSideGUID entity with the same value. Doing this restores the object to its default mutation option ("the ability to set a new valid GUID"). The current GUID will still be accessed as if it were valid, but it will be wrapped in the new stale object.

    Definition Classes
    IdentifiableEntity
  14. def Miss(): Unit
  15. def Orientation: Vector3
    Definition Classes
    PlanetSideGameObjectWorldEntity
  16. def Orientation_=(vec: Vector3): Vector3
    Definition Classes
    PlanetSideGameObjectWorldEntity
  17. def Position: Vector3
    Definition Classes
    PlanetSideGameObjectWorldEntity
  18. def Position_=(vec: Vector3): Vector3
    Definition Classes
    PlanetSideGameObjectWorldEntity
  19. def Resolve(): Unit

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

  20. def Velocity: Option[Vector3]
    Definition Classes
    PlanetSideGameObjectWorldEntity
  21. def Velocity_=(vec: Option[Vector3]): Option[Vector3]
    Definition Classes
    PlanetSideGameObjectWorldEntity
  22. def Velocity_=(vec: Vector3): Option[Vector3]
    Definition Classes
    WorldEntity
  23. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  24. val attribute_to: Int
  25. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  26. val current: SimpleWorldEntity

    Information about the current world coordinates and orientation of the projectile

  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  29. val fire_mode: FireModeDefinition
  30. val fire_time: Long
  31. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def isMiss: Boolean
  34. def isMoving(test: Float): Boolean

    This object is not considered moving unless it is moving at least as fast as a certain velocity.

    This object is not considered moving unless it is moving at least as fast as a certain velocity.

    test

    the (squared) velocity to test against

    returns

    true, if we are moving; false, otherwise

    Definition Classes
    WorldEntity
  35. def isMoving(test: Vector3): Boolean

    This object is not considered moving unless it is moving at least as fast as a certain velocity.

    This object is not considered moving unless it is moving at least as fast as a certain velocity.

    test

    the velocity to test against

    returns

    true, if we are moving; false, otherwise

    Definition Classes
    WorldEntity
  36. def isMoving: Boolean

    A velocity of non-zero is the same as moving.

    A velocity of non-zero is the same as moving.

    returns

    true, if we are moving; false, otherwise

    Definition Classes
    WorldEntity
  37. def isResolved: Boolean
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. val owner: SourceEntry
  42. def productElementNames: Iterator[String]
    Definition Classes
    Product
  43. val profile: ProjectileDefinition
  44. val shot_angle: Vector3
  45. val shot_origin: Vector3
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. val tool_def: ToolDefinition
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from PlanetSideGameObject

Inherited from WorldEntity

Inherited from IdentifiableEntity

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

Ungrouped