Added tick services to EZGame.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@82 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-10-02 07:39:31 +00:00
parent a82fc55fa4
commit 6472cf6f80
11 changed files with 295 additions and 2 deletions
@@ -72,4 +72,15 @@ public interface EZGameService extends InvocationService
public void getFromCollection (
Client client, String collName, boolean consume, int count,
String msgOrPropName, int playerIndex, ConfirmListener listener);
/**
* Start a ticker that will send out timestamp information at
* the interval specified.
*
* @param msOfDelay must be at least 50, or 0 may be set to halt
* and clear a previously started ticker.
*/
public void setTicker (
Client client, String tickerName, int msOfDelay,
InvocationListener listener);
}
@@ -168,6 +168,20 @@ public class GameObjectImpl
createLoggingListener("sendMessage"));
}
// from EZGame
public void startTicker (String tickerName, int msOfDelay)
{
validateName(tickerName);
_ezObj.ezGameService.setTicker(_ctx.getClient(),
tickerName, msOfDelay, createLoggingListener("setTicker"));
}
// from EZGame
public void stopTicker (String tickerName)
{
startTicker(tickerName, 0);
}
// from EZGame
public void sendChat (String msg)
{