|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.game.npc.Projectile.ProjectileWatcher
private static final class Projectile.ProjectileWatcher
| Field Summary | |
|---|---|
private Projectile |
myProjectile
the projectile I'm watching |
private org.starhope.appius.geometry.PolygonPrimitive<?> |
polygon
The polygon outline of the projectile (scaled) |
private static long |
serialVersionUID
Java serialisation unique ID |
| Constructor Summary | |
|---|---|
Projectile.ProjectileWatcher(Projectile projectile)
|
|
| Method Summary | |
|---|---|
String |
getName()
Return a user-visible, unique name for this class. |
void |
tick(long currentTime,
long deltaTime)
This method is called periodically from the metronome thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private final Projectile myProjectile
private final org.starhope.appius.geometry.PolygonPrimitive<?> polygon
| Constructor Detail |
|---|
public Projectile.ProjectileWatcher(Projectile projectile)
projectile - to be watched| Method Detail |
|---|
public String getName()
HasName
getName in interface HasNameHasName.getName()
public void tick(long currentTime,
long deltaTime)
throws UserDeadException
AcceptsMetronomeTicks
tick in interface AcceptsMetronomeTickscurrentTime - Time since epoch at the start of the global
metronome propagation, as per
System.currentTimeMillis()deltaTime - Delta-time in milliseconds since the prior
global metronome tick
UserDeadException - if a user has died during this tickAcceptsMetronomeTicks.tick(long,
long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||