org.starhope.appius.util
Interface AcceptsMetronomeTicks
- All Superinterfaces:
- HasName
- All Known Subinterfaces:
- PetFromInventory
- All Known Implementing Classes:
- AbstractNonPlayerCharacter, BatchProcessor, GameEvent, LaserTagGame, NetIOThread, Plebeian, Projectile.ProjectileWatcher, PropsWeather, QuestItemExchanger, ServerThread, StreamProcessor, UserLoadTest, WebSocketProcessor, ZoneSpawner
public interface AcceptsMetronomeTicks
- extends HasName
WRITEME: The documentation for this type (AcceptsMetronomeTicks) is
incomplete. (brpocock@star-hope.org, Oct 31, 2009)
- Author:
- brpocock@star-hope.org
Method Summary |
void |
tick(long currentTime,
long deltaTime)
This method is called periodically from the metronome thread. |
Methods inherited from interface org.starhope.appius.util.HasName |
getName |
tick
void tick(long currentTime,
long deltaTime)
throws UserDeadException
- This method is called periodically from the metronome thread. To
save computation, it receives both the current time since epoch
in milliseconds at the start of the global tick propagation, and
the delta time since the previous metronome tick.
- Parameters:
currentTime
- 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
- Throws:
UserDeadException
- if a user has died during this tick