trait RepairableEntity extends Repairable
The "control" Actor
mixin for repair-handling code,
for both expansion into other mixins and specific application on its own.
- Source
- RepairableEntity.scala
- See also
Player
Tool
- Alphabetic
- By Inheritance
- RepairableEntity
- Repairable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def RepairableObject: Target
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
- Repairable
Concrete 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 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
- RepairableEntity → Repairable
- 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
- See also
org.log4s.getLogger
PlanetSideEmpire
Vector3.Distance
VitalityDefinition
- def PerformRepairs(target: Target, amount: Int): Int
- Attributes
- protected
- 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
- See also
AvatarAction.PlanetsideAttributeToAll
AvatarAction.SendResponse
AvatarService
InventoryStateMessage
PlanetSideGameObject.isMoving
RepairMessage
Service.defaultPlayerGUID
Tool.Discharge
Zone.AvatarEvents
- def RepairToolValue(item: Tool): Float
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
- Repairable
- See also
Repairable.Quality
- def Restoration(obj: Target): Unit
The entity is no longer destroyed.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final val canBeRepairedByNanoDispenser: Receive
The official mixin hook;
orElse
onto the "control"Actor
receive
; catch the expected repair message and apply initial checks to the itemThe 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
- 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 equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()