trait ProximityUnit extends AnyRef
A server object that provides a service, triggered when a certain distance from the unit itself (proximity-based).
Unlike conventional terminals, this one is not necessarily structure-owned.
For example, the cavern crystals are considered owner-neutral elements that are not attached to a Building
object.
- Self Type
- ProximityUnit with Terminal
- Source
- ProximityUnit.scala
- Alphabetic
- By Inheritance
- ProximityUnit
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 AddUser(target: PlanetSideGameObject): Boolean
Accept a new target for this unit.
Accept a new target for this unit.
- target
the new target
- returns
true
, if the entrant has been added and is new to the list;false
if the entrant is already in the list or can not be added
- def NumberUsers: Int
- def RemoveUser(target: PlanetSideGameObject): Boolean
Remove an existing target for this unit.
Remove an existing target for this unit.
- target
the target
- returns
true
, if the submitted entity was previously in the list but is not longer in the list;false
, if the submitted entity was never in the list or can not be removed
- def Targets: Seq[PlanetSideGameObject]
- def Validate(radius: Float, validations: Seq[(PlanetSideGameObject) => Boolean])(target: PlanetSideGameObject): Boolean
Confirm whether the entity is a valid target for the effects of this unit.
Confirm whether the entity is a valid target for the effects of this unit. Curried to accept parameters for the tests separately from the entity to be tested. In general, the two requirements beyond the custom validations involve distance (from the unit) and inclusiveness (known to the unit beforehand).
- radius
the squared minimum activation distance
- validations
the custom tests that the entity must pass to be considered valid; in general, regardless of the type of the target, any of the tests must be passed
- target
the submitted entity
- returns
true
, if the entity passes the validation tests;false
, otherwise
- def Validate(target: PlanetSideGameObject): Boolean
Confirm whether the entity is a valid target for the effects of this unit.
Confirm whether the entity is a valid target for the effects of this unit.
- target
the submitted entity
- returns
true
, if the entity passes the validation tests;false
, otherwise
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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()