org.starhope.appius.game.npc
Class AppiusNPCManager

java.lang.Object
  extended by org.starhope.appius.game.npc.AppiusNPCManager
All Implemented Interfaces:
com.sun.sgs.app.ManagedObject, com.sun.sgs.app.Task, Serializable

public class AppiusNPCManager
extends Object
implements com.sun.sgs.app.Task, Serializable, com.sun.sgs.app.ManagedObject

This behavior allows you to write your code as if the server were always up, with the caveat that you do have to check elapsed time in your periodic task's run method if a delay between that and the last time it was run has significance to your logic.

Author:
brpocock
See Also:
Serialized Form

Field Summary
private  long lastTimestamp
          TODO: document this field (brpocock, Nov 17, 2009) lastTimestamp (AppiusNPCManager)
private static Logger logger
          The Logger for this class.
private static long serialVersionUID
          The version of the serialized form of this class.
 
Constructor Summary
AppiusNPCManager()
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logger logger
The Logger for this class.


serialVersionUID

private static final long serialVersionUID
The version of the serialized form of this class.

See Also:
Constant Field Values

lastTimestamp

private long lastTimestamp
TODO: document this field (brpocock, Nov 17, 2009) lastTimestamp (AppiusNPCManager)

Constructor Detail

AppiusNPCManager

public AppiusNPCManager()
Method Detail

run

public void run()
         throws Exception
Specified by:
run in interface com.sun.sgs.app.Task
Throws:
Exception
See Also:
Task.run()