org.starhope.appius.util
Interface AcceptsMetronomeTicks

All Superinterfaces:
HasName
All Known Implementing Classes:
AbstractNonPlayerCharacter, AbstractScriptedNPC, AppiusClaudiusCaecus, GameEvent, LaserTagGame, LuaNPC, PerlNPC, PythonNPC, RubyNPC

public interface AcceptsMetronomeTicks
extends HasName

TODO: The documentation for this type (AcceptsMetronomeTicks) is incomplete. (brpocock, Oct 31, 2009)

Author:
brpocock

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
 

Method Detail

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