- Adding support for booting players from a table

- Apparently genservice hasn't been run in a while, so half of vilya just got poked


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@709 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Bruno Garcia
2008-08-06 00:41:46 +00:00
parent 6c91e7cb96
commit 9a822fe561
47 changed files with 256 additions and 115 deletions
@@ -22,6 +22,7 @@
package com.threerings.puzzle.server;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
import com.threerings.puzzle.data.Board;
@@ -47,6 +48,7 @@ public class PuzzleGameDispatcher extends InvocationDispatcher<PuzzleGameMarshal
return new PuzzleGameMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -55,13 +57,15 @@ public class PuzzleGameDispatcher extends InvocationDispatcher<PuzzleGameMarshal
switch (methodId) {
case PuzzleGameMarshaller.UPDATE_PROGRESS:
((PuzzleGameProvider)provider).updateProgress(
source, ((Integer)args[0]).intValue(), (int[])args[1]
source,
((Integer)args[0]).intValue(), (int[])args[1]
);
return;
case PuzzleGameMarshaller.UPDATE_PROGRESS_SYNC:
((PuzzleGameProvider)provider).updateProgressSync(
source, ((Integer)args[0]).intValue(), (int[])args[1], (Board[])args[2]
source,
((Integer)args[0]).intValue(), (int[])args[1], (Board[])args[2]
);
return;