ProjectileEx
Read-only native projectile identity and lifetime for event-driven overlays.
Final classRLPlugins API
public final class ProjectileExMembers
Constructors
- newProjectileEx(Projectile)
Creates a ProjectileEx.
Methods
- booleanequals(Object)
Whether this and the other object are the same thing.
- PointgetCanvasLocation()
Projects the current flight position, including its height above the scene.
- intgetId()
The id.
- ActorEx<?>getInteracting()
Current actor target, wrapped at the native client-thread boundary.
- intgetRemainingCycles()
The remaining cycles.
- WorldPointgetSourcePoint()
Source in the projectile's world view, as resolved by the native client.
- intgetStartCycle()
The start cycle.
- LocalPointgetTarget()
Current destination in the projectile's own local coordinate space.
- WorldPointgetTargetPoint()
Native destination fallback when the projectile has no local target.
- WorldPointgetWorldPoint()
Current flight tile in the projectile target's native world view; unavailable view returns null.
- inthashCode()
A number Java uses when this is put in a set or a map.
ProjectileEx(Projectile)
public ProjectileEx(Projectile projectile)Creates a ProjectileEx.
Parameters
projectile- Projectile.
equals(Object)
public boolean equals(Object other)Whether this and the other object are the same thing.
Parameters
other- Other.
getCanvasLocation()
public Point getCanvasLocation()Projects the current flight position, including its height above the scene.
getId()
public int getId()The id.
getInteracting()
public ActorEx<?> getInteracting()Current actor target, wrapped at the native client-thread boundary.
getRemainingCycles()
public int getRemainingCycles()The remaining cycles.
getSourcePoint()
public WorldPoint getSourcePoint()Source in the projectile's world view, as resolved by the native client.
getStartCycle()
public int getStartCycle()The start cycle.
getTarget()
public LocalPoint getTarget()Current destination in the projectile's own local coordinate space.
getTargetPoint()
public WorldPoint getTargetPoint()Native destination fallback when the projectile has no local target.
getWorldPoint()
public WorldPoint getWorldPoint()Current flight tile in the projectile target's native world view; unavailable view returns null.
hashCode()
public int hashCode()A number Java uses when this is put in a set or a map.
Also allowed
Every class has these, as in plain Java.
toString