|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.monsters.HeartbeatManager
This class makes sure all monsters get a heartbeat, and allows other game objects to register for heartbeat notifications as well.
Field Summary | |
static int |
HEARTBEAT_INTERVAL
The delay (in millis) between heartbeats in the game. |
Method Summary | |
static void |
add(HeartbeatCallback obj)
Adds an object to the set of callbacks receiving heartbeat notifications. |
static boolean |
contains(HeartbeatCallback obj)
Returns true if the specified object is receiving heartbeat notifications. |
static java.lang.String |
getProfilingInfo()
Returns info about the objects on the monitor. |
static void |
remove(HeartbeatCallback obj)
Removes an object from the heartbeat list. |
static void |
start()
For bootstrapping the object. |
void |
timerExpired()
Callback for timer notification. |
java.lang.String |
toString()
Returns String description. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int HEARTBEAT_INTERVAL
Method Detail |
public static void start()
public static void add(HeartbeatCallback obj)
public static void remove(HeartbeatCallback obj)
public static boolean contains(HeartbeatCallback obj)
public void timerExpired()
timerExpired
in interface Timed
public static java.lang.String getProfilingInfo()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |