class VehicleControl extends Actor with Check with DeploymentBehavior with Mount with Dismount with CargoBehavior with DamageableVehicle with RepairableVehicle with JammableMountedWeapons with ContainableBehavior with AntTransferBehavior

An Actor that handles messages being dispatched to a specific Vehicle.

Vehicle-controlling actors have two behavioral states - responsive and "Disabled." The latter is applicable only when the specific vehicle is being deconstructed.

Source
VehicleControl.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VehicleControl
  2. AntTransferBehavior
  3. NtuStorageBehavior
  4. TransferBehavior
  5. ContainableBehavior
  6. JammableMountedWeapons
  7. JammableBehavior
  8. RepairableVehicle
  9. RepairableEntity
  10. Repairable
  11. DamageableVehicle
  12. DamageableEntity
  13. Damageable
  14. CargoBehavior
  15. Dismount
  16. Mount
  17. DeploymentBehavior
  18. Check
  19. BasicAffinity
  20. Actor
  21. AnyRef
  22. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new VehicleControl(vehicle: Vehicle)

    vehicle

    the Vehicle object being governed

Type Members

  1. type Receive = PartialFunction[Any, Unit]
    Definition Classes
    Actor

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 ActivatePanelsForChargingEvent(vehicle: NtuContainer): Unit
    Definition Classes
    AntTransferBehavior
  5. def CanBeRepairedByNanoDispenser(player: Player, item: Tool): Unit

    Catch the expected repair message and apply further checks to the combination of the target, the equipment, and tis user.

    Catch the expected repair message and apply further checks to the combination of the target, the equipment, and tis user. If the checks pass, perform the repair.

    player

    the user of the nano dispenser tool

    item

    the nano dispenser tool

    Definition Classes
    RepairableEntityRepairable
  6. def CanPerformRepairs(target: Target, player: Player, item: Tool): Boolean

    Test the combination of target entity, equipment user, and the equipment to determine if the repair process attempt would be permitted.

    Test the combination of target entity, equipment user, and the equipment to determine if the repair process attempt would be permitted. It is not necessary to check that the tool and its ammunition are correct types; that test was already performed.

    The target entity must be repairable and have less than full health and, if it is destroyed, must have an object attribute that permits it to be repaired after being destroyed.
    The user must have the same faction affinity as the target entity or be neutral.
    The equipment must have some ammunition.
    The user must be alive and be within a certain distance of the target entity.

    target

    the entity being repaired

    player

    the user of the nano dispenser tool

    item

    the nano dispenser tool

    returns

    true, if the target entity can be repaired; false, otherwise

    Attributes
    protected
    Definition Classes
    RepairableEntity
    See also

    org.log4s.getLogger

    PlanetSideEmpire

    Vector3.Distance

    VitalityDefinition

  7. def CancelJammeredSound(target: Any): Unit

    Deactivate a distinctive buzzing sound effect.

    Deactivate a distinctive buzzing sound effect. Due to considerations of the object that is the target, this is left to be implemented by a subclass. We merely stop the timer.

    target

    an object that can be affected by the jammered status

    Definition Classes
    JammableMountedWeaponsJammableBehavior
  8. def CancelJammeredStatus(target: Any): Unit

    Deactivate the effects of the jammered status.

    Deactivate the effects of the jammered status. Due to considerations of the object that is the target, this is left to be implemented by a subclass. We merely stop the timer.

    target

    an object that can be affected by the jammered status

    Definition Classes
    JammableMountedWeaponsJammableBehavior
  9. def CargoObject: Vehicle
    Definition Classes
    VehicleControlCargoBehavior
  10. def ChargeTransferObject: Vehicle
  11. def ContainerObject: Vehicle
    Definition Classes
    VehicleControlContainableBehavior
  12. def DamageAwareness(target: Target, cause: ResolvedProjectile, amount: Int): Unit

    What happens when damage is sustained but the target does not get destroyed.

    What happens when damage is sustained but the target does not get destroyed.

    target

    the entity being damaged

    cause

    historical information about the damage

    amount

    the amount of damage

    Attributes
    protected
    Definition Classes
    DamageableVehicleDamageableEntity
  13. def DamageLog(target: Target, msg: String): Unit

    Log a damage message with a decorator for this target.

    Log a damage message with a decorator for this target. The decorator is constructed by the Actor name of the entity, sliced after the last forward/slash. For example, for "foo/bar/name", the decorator is just "name".

    target

    the entity to be used for the decorator

    msg

    the message for the damage log

    Attributes
    protected
    Definition Classes
    DamageableEntity
    See also

    PlanetSideServerObject

  14. def DamageLog(msg: String): Unit

    Log a damage message.

    Log a damage message.

    msg

    the message for the damage log

    Attributes
    protected
    Definition Classes
    DamageableEntity
  15. def DamageableObject: Vehicle

    Contextual access to the object being the target of this damage.

    Contextual access to the object being the target of this damage. Needs declaration in lowest implementing code.

    returns

    the entity controlled by this actor

    Definition Classes
    VehicleControlDamageableVehicleDamageable
  16. def DeploymentAction(obj: DeploymentObject, state: types.DriveState.Value, prevState: types.DriveState.Value): types.DriveState.Value
    Definition Classes
    VehicleControlDeploymentBehavior
  17. def DeploymentObject: Vehicle
    Definition Classes
    VehicleControlDeploymentBehavior
  18. def DestructionAwareness(target: Target, cause: ResolvedProjectile): Unit

    What happens when the target sustains too much damage and is destroyed.

    What happens when the target sustains too much damage and is destroyed.

    target

    the entity being destroyed

    cause

    historical information about the damage

    Attributes
    protected
    Definition Classes
    DamageableVehicleDamageableEntity
    See also

    Damageable.DestructionAwareness

  19. def Disabled: Receive
  20. def Enabled: Receive
  21. def FactionObject: Vehicle
    Definition Classes
    VehicleControlBasicAffinity
  22. def GainOwnership(player: Player): Unit
  23. def HandleChargingEvent(target: TransferContainer): Boolean
  24. def HandleDamage(target: Target, cause: ResolvedProjectile, damage: Int): Unit

    Select between mere damage reception or target destruction.

    Select between mere damage reception or target destruction.

    target

    the entity being damaged

    cause

    historical information about the damage

    damage

    the amount of damage

    Attributes
    protected
    Definition Classes
    DamageableEntity
    See also

    VitalDefinition.DamageDestroysAt

  25. def HandleDischargingEvent(target: TransferContainer): Boolean

    Discharging

    Discharging

    Definition Classes
    AntTransferBehaviorTransferBehavior
  26. def HandleNtuGrant(sender: ActorRef, src: NtuContainer, amount: Int): Unit
  27. def HandleNtuOffer(sender: ActorRef, src: NtuContainer): Unit
  28. def HandleNtuRequest(sender: ActorRef, min: Int, max: Int): Unit
  29. def InitialCharge(): Unit
    Definition Classes
    AntTransferBehavior
  30. def InitialDischarge(): Unit
    Definition Classes
    AntTransferBehavior
  31. def JammableObject: Vehicle

    ZoneAware is used for callback to the event systems

    ZoneAware is used for callback to the event systems

    Definition Classes
    VehicleControlJammableBehavior
  32. def LoseOwnership(): Unit
  33. def MessageDeferredCallback(msg: Any): Unit

    Reaction to the initial deferrence of a message that should handle the visual aspects of not immediately addressing the message.

    Reaction to the initial deferrence of a message that should handle the visual aspects of not immediately addressing the message. To be implemented.

    msg

    the deferred message

    Definition Classes
    VehicleControlContainableBehavior
  34. def MountTest(obj: PlanetSideServerObject with Mountable, seatNumber: Int, player: Player): Boolean
    Attributes
    protected
    Definition Classes
    Mount
  35. def MountableObject: Vehicle
    Definition Classes
    VehicleControlDismountMount
  36. def NoCharge(): Unit
    Definition Classes
    AntTransferBehavior
  37. def NtuStorageObject: NtuContainer
    Definition Classes
    NtuStorageBehavior
  38. def PerformDamage(target: Target, applyDamageTo: Output): Unit

    Vehicles may have charged shields that absorb damage before the vehicle's own health is affected.

    Vehicles may have charged shields that absorb damage before the vehicle's own health is affected.

    target

    the entity to be damaged

    applyDamageTo

    the function that applies the damage to the target in a target-tailored fashion

    Attributes
    protected
    Definition Classes
    DamageableVehicleDamageableEntity
  39. def PerformRepairs(target: Target, player: Player, item: Tool): Unit

    Calculate the health points change and enact that repair action if the targets are stationary.

    Calculate the health points change and enact that repair action if the targets are stationary. Restore the target entity to a not destroyed state if applicable. Always show the repair progress bar window by using the appropriate packet.

    target

    the entity being repaired

    player

    the user of the nano dispenser tool

    item

    the nano dispenser tool

    Attributes
    protected
    Definition Classes
    RepairableEntity
    See also

    AvatarAction.PlanetsideAttributeToAll

    AvatarAction.SendResponse

    AvatarService

    InventoryStateMessage

    PlanetSideGameObject.isMoving

    RepairMessage

    Service.defaultPlayerGUID

    Tool.Discharge

    Zone.AvatarEvents

  40. def PrepareForDeletion(): Unit
  41. def PutItemInSlotCallback(item: Equipment, slot: Int): Unit

    Reaction to an item being placed into a container.

    Reaction to an item being placed into a container. To be implemented.

    item

    the item that was removed

    slot

    the slot from which is was removed

    Definition Classes
    VehicleControlContainableBehavior
  42. def ReceiveAndDepositUntilFull(vehicle: Vehicle, amount: Int): Boolean
    Definition Classes
    AntTransferBehavior
  43. def RemoveItemFromSlotCallback(item: Equipment, slot: Int): Unit

    Reaction to an item being removed a container.

    Reaction to an item being removed a container. To be implemented.

    item

    the item that was removed

    slot

    the slot from which is was removed

    Definition Classes
    VehicleControlContainableBehavior
  44. def RepairValue(item: Tool): Int

    The amount of repair that any specific tool provides.

    The amount of repair that any specific tool provides.

    item

    the tool in question

    returns

    an amount to add to the repair attempt progress

    Definition Classes
    RepairableEntityRepairable
    See also

    Repairable.Quality

  45. def RepairableObject: Vehicle

    Contextual access to the object being the target of this damage.

    Contextual access to the object being the target of this damage. Needs declaration in lowest implementing code.

    returns

    the entity controlled by this actor

    Definition Classes
    VehicleControlRepairable
  46. def RepeatMessageLater(msg: Any): Unit

    Defer a message until later.

    Defer a message until later.

    msg

    the message to defer

    Definition Classes
    ContainableBehavior
    See also

    ContainableBehavior.Defer

    DeferrableMsg

  47. def Reset(): Unit

    Stop blocking messages.

    Stop blocking messages.

    Definition Classes
    ContainableBehavior
  48. def Restoration(obj: Target): Unit

    The entity is no longer destroyed.

    The entity is no longer destroyed.

    obj

    the entity

    Definition Classes
    RepairableVehicleRepairable
  49. def Resume(): Unit

    Decrement the flag for blocking messages.

    Decrement the flag for blocking messages.

    Definition Classes
    ContainableBehavior
  50. def StartJammeredSound(target: Any, dur: Int): Unit

    Activate a distinctive buzzing sound effect.

    Activate a distinctive buzzing sound effect. Due to considerations of the object that is the target, this is left to be implemented by a subclass. We merely start the timer.

    target

    an object that can be affected by the jammered status

    dur

    the duration of the timer, in milliseconds; by default, 30000

    Definition Classes
    JammableMountedWeaponsJammableBehavior
  51. def StartJammeredStatus(target: Any, dur: Int): Unit

    Deactivate the effects of the jammered status.

    Deactivate the effects of the jammered status. Due to considerations of the object that is the target, this is left to be implemented by a subclass. We merely stop the timer.

    target

    an object that can be affected by the jammered status

    dur

    the duration of the timer, in milliseconds

    Definition Classes
    JammableMountedWeaponsJammableBehavior
  52. def StartNtuChargingEvent(vehicle: NtuContainer): Unit

    Charging

    Charging

    Definition Classes
    AntTransferBehavior
  53. def StopNtuBehavior(sender: ActorRef): Unit
  54. def SwapItemCallback(item: Equipment, fromSlot: Int): Unit

    Reaction to the existence of a swap item being produced from a container into the environment.

    Reaction to the existence of a swap item being produced from a container into the environment. To be implemented.

    item

    the item that was removed

    fromSlot

    the slot from where the item was removed (where it previous was)

    Definition Classes
    VehicleControlContainableBehavior
  55. def TakesDamage: akka.actor.Actor.Receive

    Catch the expected damage message and apply checks to the target.

    Catch the expected damage message and apply checks to the target. If adding custom message handling in an future child implementation, override this method and call super.TakesDamage.orElse { ... }.

    Attributes
    protected
    Definition Classes
    DamageableVehicleDamageableEntityDamageable
    See also

    Damageable.TakesDamage

    ResolutionCalcultions.Output

    Vitality.CanDamage

    Vitality.Damage

  56. def TransferMaterial: Nanites
  57. def TryChargingActivity(): Unit
    Definition Classes
    TransferBehavior
  58. def TryDeployStateChange(state: types.DriveState.Value): Any
    Definition Classes
    DeploymentBehavior
  59. def TryDeploymentChange(obj: DeploymentObject, state: types.DriveState.Value): Boolean
    Definition Classes
    VehicleControlDeploymentBehavior
  60. def TryDeploymentStateChange(state: types.DriveState.Value): Any
    Definition Classes
    DeploymentBehavior
  61. def TryDischargingActivity(): Unit
    Definition Classes
    TransferBehavior
  62. def TryJammerEffectActivate(target: Any, cause: ResolvedProjectile): Unit

    If the target can be validated against, affect it with the jammered status.

    If the target can be validated against, affect it with the jammered status.

    target

    the objects to be determined if affected by the source's jammering

    cause

    the source of the "jammered" status

    Definition Classes
    VehicleControlJammableBehavior
  63. def TryStopChargingEvent(container: TransferContainer): Unit

    Stopping

    Stopping

    Definition Classes
    AntTransferBehaviorTransferBehavior
  64. def TryUndeployStateChange(state: types.DriveState.Value): Any
    Definition Classes
    DeploymentBehavior
  65. def TryUndeploymentChange(obj: DeploymentObject, state: types.DriveState.Value): Boolean
    Definition Classes
    DeploymentBehavior
  66. def UndeploymentAction(obj: DeploymentObject, state: types.DriveState.Value, prevState: types.DriveState.Value): types.DriveState.Value
    Definition Classes
    VehicleControlDeploymentBehavior
  67. def UpdateNtuUI(vehicle: Vehicle with NtuContainer): Unit
    Definition Classes
    AntTransferBehavior
  68. def Wait(): Unit

    Increment the flag for blocking messages.

    Increment the flag for blocking messages.

    Definition Classes
    ContainableBehavior
  69. def WillAffectTarget(target: Target, damage: Int, cause: ResolvedProjectile): Boolean

    Does the damage or the projectile that caused the damage offer any reason to execute the reminder of damage resolution considerations? The projectile causing additional affects, e.g., jamming, should be tested here, when applicable.

    Does the damage or the projectile that caused the damage offer any reason to execute the reminder of damage resolution considerations? The projectile causing additional affects, e.g., jamming, should be tested here, when applicable. Contrast with Vitality.CanDamage. The damage value tested against should be the total value of all meaningful vital statistics affected.

    target

    the entity to be damaged

    damage

    the amount of damage

    cause

    historical information about the damage

    returns

    true, if damage resolution is to be evaluated; false, otherwise

    Attributes
    protected
    Definition Classes
    DamageableEntity
    See also

    Damageable.CanDamageOrJammer

    PerformDamage

  70. def WithdrawAndTransmit(vehicle: Vehicle, maxRequested: Int): Any
    Definition Classes
    AntTransferBehavior
  71. def antBehavior: Receive
    Definition Classes
    AntTransferBehavior
  72. def aroundPostRestart(reason: Throwable): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  73. def aroundPostStop(): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  74. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  75. def aroundPreStart(): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  76. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  77. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  78. final val canBeRepairedByNanoDispenser: akka.actor.Actor.Receive

    The official mixin hook; orElse onto the "control" Actor receive; catch the expected repair message and apply initial checks to the item

    The official mixin hook; orElse onto the "control" Actor receive; catch the expected repair message and apply initial checks to the item

    Definition Classes
    Repairable
    See also

    Ammo

    CanBeRepairedByNanoDispenser

    CommonMessages.Use

    GlobalDefinitions

    Tool.AmmoType

  79. val cargoBehavior: Receive
    Definition Classes
    CargoBehavior
  80. val checkBehavior: Receive
    Definition Classes
    Check
  81. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  82. final val containerBehavior: Receive
    Definition Classes
    ContainableBehavior
  83. implicit val context: ActorContext
    Definition Classes
    Actor
  84. var decayTimer: Cancellable

    primary vehicle decay timer

  85. var decaying: Boolean

    cheap flag for whether the vehicle is decaying

  86. val deployBehavior: Receive
    Definition Classes
    DeploymentBehavior
  87. val dismountBehavior: Receive
    Definition Classes
    Dismount
  88. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  89. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  90. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  91. val findChargeTargetFunc: (TransferContainer, Option[TransferContainer]) => Option[TransferContainer]
    Definition Classes
    TransferBehavior
  92. val findDischargeTargetFunc: (TransferContainer, Option[TransferContainer]) => Option[TransferContainer]
    Definition Classes
    TransferBehavior
  93. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  94. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  95. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  96. val jammableBehavior: Receive
    Definition Classes
    JammableBehavior
  97. val jammedSound: Boolean

    flag for jammed sound

    flag for jammed sound

    Attributes
    protected
    Definition Classes
    JammableBehavior
  98. val jammeredSoundTimer: Cancellable

    the sound timer

    the sound timer

    Attributes
    protected
    Definition Classes
    JammableBehavior
  99. val jammeredStatusTimer: Cancellable

    the effect timer

    the effect timer

    Attributes
    protected
    Definition Classes
    JammableBehavior
  100. val mountBehavior: Receive
    Definition Classes
    Mount
  101. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  102. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  103. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  104. val ntuChargingTick: Cancellable
    Definition Classes
    AntTransferBehavior
  105. val panelAnimationFunc: () => Unit
    Definition Classes
    AntTransferBehavior
  106. def postRestart(reason: Throwable): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  107. def postStop(): Unit
    Definition Classes
    VehicleControl → Actor
  108. def preRestart(reason: Throwable, message: Option[Any]): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  109. def preStart(): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  110. def receive: Receive
    Definition Classes
    VehicleControl → Actor
  111. implicit final val self: ActorRef
    Definition Classes
    Actor
  112. final def sender(): ActorRef
    Definition Classes
    Actor
  113. def storageBehavior: Receive
    Definition Classes
    NtuStorageBehavior
  114. def supervisorStrategy: SupervisorStrategy
    Definition Classes
    Actor
  115. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  116. final val takesDamage: akka.actor.Actor.Receive

    the official mixin hook; orElse onto the "control" Actor receive

    the official mixin hook; orElse onto the "control" Actor receive

    Definition Classes
    Damageable
  117. def toString(): String
    Definition Classes
    AnyRef → Any
  118. val transferBehavior: Receive
    Definition Classes
    TransferBehavior
  119. val transferEvent: serverobject.transfer.TransferBehavior.Event.Value
    Definition Classes
    TransferBehavior
  120. val transferTarget: Option[TransferContainer]
    Definition Classes
    TransferBehavior
  121. val tryMountBehavior: Receive
  122. def unhandled(message: Any): Unit
    Definition Classes
    Actor
  123. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  124. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  125. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AntTransferBehavior

Inherited from NtuStorageBehavior

Inherited from TransferBehavior

Inherited from ContainableBehavior

Inherited from JammableMountedWeapons

Inherited from JammableBehavior

Inherited from RepairableVehicle

Inherited from RepairableEntity

Inherited from Repairable

Inherited from DamageableVehicle

Inherited from DamageableEntity

Inherited from Damageable

Inherited from CargoBehavior

Inherited from Dismount

Inherited from Mount

Inherited from DeploymentBehavior

Inherited from Check

Inherited from BasicAffinity

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped