gecco.server.core
Class ActionReturnRequeue
java.lang.Object
|
+--gecco.server.core.ActionReturn
|
+--gecco.server.core.ActionReturnRequeue
- public class ActionReturnRequeue
- extends ActionReturn
An instance of this class should be returned from action handlers to
indicate that the action is not finished and that the handler should be
called again after a specified amount of time.
- Author:
- Henrik Bäärnhielm, Karl Hasselström, Henrik Hägerström
Method Summary |
double |
getTimeToWakeup()
Gets the number of seconds until next call to handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionReturnRequeue
public ActionReturnRequeue(double timeToWakeup)
- Constructor for the ActionReturnRequeue object
- Parameters:
timeToWakeup
- Seconds until next call to handler (game time).
ActionReturnRequeue
public ActionReturnRequeue(double timeToWakeup,
String unitMessage)
- Constructor for the ActionReturnRequeue object
- Parameters:
timeToWakeup
- Seconds until next call to handler.unitMessage
- Return message from handler.
getTimeToWakeup
public double getTimeToWakeup()
- Gets the number of seconds until next call to handler.
- Returns:
- Seconds until next call to handler.