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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user