object GeneratorControl
- Source
- GeneratorControl.scala
- Alphabetic
- By Inheritance
- GeneratorControl
- 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 DamageAwareness(target: Generator, cause: DamageResult, amount: Int): Unit
If not destroyed, it will complain about being damaged.
If not destroyed, it will complain about being damaged.
- target
the entity being damaged
- cause
historical information about the damage
- amount
the amount of damage
- 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])
- def generatorRoomExplosionDetectionTest(g1ctrXY: Vector3, ufront: Vector3, uside: Vector3, uup: Vector3, topPoint: Float, basePoint: Float)(source: PlanetSideGameObject, target: PlanetSideGameObject, maxDistance: Float): Boolean
The explosion of the generator affects all targets within the generator room.
The explosion of the generator affects all targets within the generator room. The generator room is not perfectly geometric nor it is even properly centered on the generator unit. As a consequence, different measurements must be performed to determine that the target is "within" and that the target is not "outside" of the detection radius of the room. Magic numbers for the room dimensions are employed.
- g1ctrXY
the center of the generator on the xy-axis
- ufront
a
Vector3
entity that points to the "front" direction of the generator; theu
prefix indicates a "unit vector"- uside
a
Vector3
entity that points to the "side" direction of the generator; theu
prefix indicates a "unit vector"- uup
a
Vector3
entity that points to the "top" direction of the generator; theu
prefix indicates a "unit vector"- topPoint
a point at the top of the generator; represents the highest possible point of damage
- basePoint
a point at the bottom of the generator; represents the lowest possible point of damage
- source
a game entity, should be the source of the explosion
- target
a game entity, should be the target of the explosion
- maxDistance
the square of the maximum distance permissible between game entities; not used here
- returns
true
, if the target entities are near enough to each other;false
, otherwise
- See also
Zone.distanceCheck
Zone.serverSideDamage
- def generatorRoomExplosionDetectionTestSetup(pointTowardsFront: Vector3, source: PlanetSideGameObject): (PlanetSideGameObject, PlanetSideGameObject, Float) => Boolean
The explosion of the generator affects all targets within the generator room.
The explosion of the generator affects all targets within the generator room. Perform setup using basic input to calculate the data that will orient the "room" in terms of what targets can be affected by the explosion.
- pointTowardsFront
starting from the generator's centroid, a point that represents something "in front of" the generator
- source
the generator
- returns
a function that takes source and target and calculates whether or not the target will be affected by an explosion of the source
- 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()
- object Event extends Enumeration
na