Actually these had been generated. Bruno must have regenerated them with an old

version of Narya.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@710 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2008-08-06 00:53:22 +00:00
parent 9a822fe561
commit 8410b8893c
44 changed files with 105 additions and 163 deletions
@@ -29,7 +29,7 @@ import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.util.Integer;
/**
* Provides the implementation of the {@link TrickCardGameService} interface
* Provides the implementation of the <code>TrickCardGameService</code> interface
* that marshalls the arguments and delivers the request to the provider
* on the server. Also provides an implementation of the response listener
* interfaces that marshall the response arguments and deliver them back
@@ -38,7 +38,7 @@ import com.threerings.util.Integer;
public class TrickCardGameMarshaller extends InvocationMarshaller
implements TrickCardGameService
{
/** The method id used to dispatch {@link #playCard} requests. */
/** The method id used to dispatch <code>playCard</code> requests. */
public static const PLAY_CARD :int = 1;
// from interface TrickCardGameService
@@ -49,7 +49,7 @@ public class TrickCardGameMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #requestRematch} requests. */
/** The method id used to dispatch <code>requestRematch</code> requests. */
public static const REQUEST_REMATCH :int = 2;
// from interface TrickCardGameService
@@ -60,7 +60,7 @@ public class TrickCardGameMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #sendCardsToPlayer} requests. */
/** The method id used to dispatch <code>sendCardsToPlayer</code> requests. */
public static const SEND_CARDS_TO_PLAYER :int = 3;
// from interface TrickCardGameService
@@ -34,7 +34,7 @@ import com.threerings.util.Integer;
import com.threerings.util.Name;
/**
* Provides the implementation of the {@link ParlorService} interface
* Provides the implementation of the <code>ParlorService</code> interface
* that marshalls the arguments and delivers the request to the provider
* on the server. Also provides an implementation of the response listener
* interfaces that marshall the response arguments and deliver them back
@@ -43,7 +43,7 @@ import com.threerings.util.Name;
public class ParlorMarshaller extends InvocationMarshaller
implements ParlorService
{
/** The method id used to dispatch {@link #cancel} requests. */
/** The method id used to dispatch <code>cancel</code> requests. */
public static const CANCEL :int = 1;
// from interface ParlorService
@@ -56,7 +56,7 @@ public class ParlorMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #invite} requests. */
/** The method id used to dispatch <code>invite</code> requests. */
public static const INVITE :int = 2;
// from interface ParlorService
@@ -69,7 +69,7 @@ public class ParlorMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #respond} requests. */
/** The method id used to dispatch <code>respond</code> requests. */
public static const RESPOND :int = 3;
// from interface ParlorService
@@ -82,7 +82,7 @@ public class ParlorMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #startSolitaire} requests. */
/** The method id used to dispatch <code>startSolitaire</code> requests. */
public static const START_SOLITAIRE :int = 4;
// from interface ParlorService
@@ -30,7 +30,7 @@ import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
public class ParlorMarshaller_InviteMarshaller
extends InvocationMarshaller_ListenerMarshaller
{
/** The method id used to dispatch {@link #inviteReceived} responses. */
/** The method id used to dispatch <code>inviteReceived</code> responses. */
public static const INVITE_RECEIVED :int = 1;
// from InvocationMarshaller_ListenerMarshaller
@@ -32,7 +32,7 @@ import com.threerings.presents.data.InvocationMarshaller_ResultMarshaller;
import com.threerings.util.Integer;
/**
* Provides the implementation of the {@link TableService} interface
* Provides the implementation of the <code>TableService</code> interface
* that marshalls the arguments and delivers the request to the provider
* on the server. Also provides an implementation of the response listener
* interfaces that marshall the response arguments and deliver them back
@@ -41,7 +41,7 @@ import com.threerings.util.Integer;
public class TableMarshaller extends InvocationMarshaller
implements TableService
{
/** The method id used to dispatch {@link #bootPlayer} requests. */
/** The method id used to dispatch <code>bootPlayer</code> requests. */
public static const BOOT_PLAYER :int = 1;
// from interface TableService
@@ -54,7 +54,7 @@ public class TableMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #createTable} requests. */
/** The method id used to dispatch <code>createTable</code> requests. */
public static const CREATE_TABLE :int = 2;
// from interface TableService
@@ -67,7 +67,7 @@ public class TableMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #joinTable} requests. */
/** The method id used to dispatch <code>joinTable</code> requests. */
public static const JOIN_TABLE :int = 3;
// from interface TableService
@@ -80,7 +80,7 @@ public class TableMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #leaveTable} requests. */
/** The method id used to dispatch <code>leaveTable</code> requests. */
public static const LEAVE_TABLE :int = 4;
// from interface TableService
@@ -93,7 +93,7 @@ public class TableMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #startTableNow} requests. */
/** The method id used to dispatch <code>startTableNow</code> requests. */
public static const START_TABLE_NOW :int = 5;
// from interface TableService
@@ -28,7 +28,7 @@ import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.client.SceneService_SceneMoveListener;
/**
* Provides the implementation of the {@link SceneService} interface
* Provides the implementation of the <code>SceneService</code> interface
* that marshalls the arguments and delivers the request to the provider
* on the server. Also provides an implementation of the response listener
* interfaces that marshall the response arguments and deliver them back
@@ -37,7 +37,7 @@ import com.threerings.whirled.client.SceneService_SceneMoveListener;
public class SceneMarshaller extends InvocationMarshaller
implements SceneService
{
/** The method id used to dispatch {@link #moveTo} requests. */
/** The method id used to dispatch <code>moveTo</code> requests. */
public static const MOVE_TO :int = 1;
// from interface SceneService
@@ -32,16 +32,16 @@ import com.threerings.whirled.client.SceneService_SceneMoveListener;
public class SceneMarshaller_SceneMoveMarshaller
extends InvocationMarshaller_ListenerMarshaller
{
/** The method id used to dispatch {@link #moveRequiresServerSwitch} responses. */
/** The method id used to dispatch <code>moveRequiresServerSwitch</code> responses. */
public static const MOVE_REQUIRES_SERVER_SWITCH :int = 1;
/** The method id used to dispatch {@link #moveSucceeded} responses. */
/** The method id used to dispatch <code>moveSucceeded</code> responses. */
public static const MOVE_SUCCEEDED :int = 2;
/** The method id used to dispatch {@link #moveSucceededWithScene} responses. */
/** The method id used to dispatch <code>moveSucceededWithScene</code> responses. */
public static const MOVE_SUCCEEDED_WITH_SCENE :int = 3;
/** The method id used to dispatch {@link #moveSucceededWithUpdates} responses. */
/** The method id used to dispatch <code>moveSucceededWithUpdates</code> responses. */
public static const MOVE_SUCCEEDED_WITH_UPDATES :int = 4;
// from InvocationMarshaller_ListenerMarshaller
@@ -32,7 +32,7 @@ import com.threerings.whirled.data.SceneMarshaller_SceneMoveMarshaller;
import com.threerings.whirled.spot.client.SpotService;
/**
* Provides the implementation of the {@link SpotService} interface
* Provides the implementation of the <code>SpotService</code> interface
* that marshalls the arguments and delivers the request to the provider
* on the server. Also provides an implementation of the response listener
* interfaces that marshall the response arguments and deliver them back
@@ -41,7 +41,7 @@ import com.threerings.whirled.spot.client.SpotService;
public class SpotMarshaller extends InvocationMarshaller
implements SpotService
{
/** The method id used to dispatch {@link #changeLocation} requests. */
/** The method id used to dispatch <code>changeLocation</code> requests. */
public static const CHANGE_LOCATION :int = 1;
// from interface SpotService
@@ -54,7 +54,7 @@ public class SpotMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #clusterSpeak} requests. */
/** The method id used to dispatch <code>clusterSpeak</code> requests. */
public static const CLUSTER_SPEAK :int = 2;
// from interface SpotService
@@ -65,7 +65,7 @@ public class SpotMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #joinCluster} requests. */
/** The method id used to dispatch <code>joinCluster</code> requests. */
public static const JOIN_CLUSTER :int = 3;
// from interface SpotService
@@ -78,7 +78,7 @@ public class SpotMarshaller extends InvocationMarshaller
]);
}
/** The method id used to dispatch {@link #traversePortal} requests. */
/** The method id used to dispatch <code>traversePortal</code> requests. */
public static const TRAVERSE_PORTAL :int = 4;
// from interface SpotService
@@ -28,7 +28,7 @@ import com.threerings.whirled.zone.client.ZoneService;
import com.threerings.whirled.zone.client.ZoneService_ZoneMoveListener;
/**
* Provides the implementation of the {@link ZoneService} interface
* Provides the implementation of the <code>ZoneService</code> interface
* that marshalls the arguments and delivers the request to the provider
* on the server. Also provides an implementation of the response listener
* interfaces that marshall the response arguments and deliver them back
@@ -37,7 +37,7 @@ import com.threerings.whirled.zone.client.ZoneService_ZoneMoveListener;
public class ZoneMarshaller extends InvocationMarshaller
implements ZoneService
{
/** The method id used to dispatch {@link #moveTo} requests. */
/** The method id used to dispatch <code>moveTo</code> requests. */
public static const MOVE_TO :int = 1;
// from interface ZoneService
@@ -33,13 +33,13 @@ import com.threerings.whirled.zone.client.ZoneService_ZoneMoveListener;
public class ZoneMarshaller_ZoneMoveMarshaller
extends InvocationMarshaller_ListenerMarshaller
{
/** The method id used to dispatch {@link #moveSucceeded} responses. */
/** The method id used to dispatch <code>moveSucceeded</code> responses. */
public static const MOVE_SUCCEEDED :int = 1;
/** The method id used to dispatch {@link #moveSucceededWithScene} responses. */
/** The method id used to dispatch <code>moveSucceededWithScene</code> responses. */
public static const MOVE_SUCCEEDED_WITH_SCENE :int = 2;
/** The method id used to dispatch {@link #moveSucceededWithUpdates} responses. */
/** The method id used to dispatch <code>moveSucceededWithUpdates</code> responses. */
public static const MOVE_SUCCEEDED_WITH_UPDATES :int = 3;
// from InvocationMarshaller_ListenerMarshaller
@@ -22,7 +22,6 @@
package com.threerings.micasa.lobby;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
@@ -46,7 +45,6 @@ public class LobbyDispatcher extends InvocationDispatcher<LobbyMarshaller>
return new LobbyMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -55,15 +53,13 @@ public class LobbyDispatcher extends InvocationDispatcher<LobbyMarshaller>
switch (methodId) {
case LobbyMarshaller.GET_CATEGORIES:
((LobbyProvider)provider).getCategories(
source,
(LobbyService.CategoriesListener)args[0]
source, (LobbyService.CategoriesListener)args[0]
);
return;
case LobbyMarshaller.GET_LOBBIES:
((LobbyProvider)provider).getLobbies(
source,
(String)args[0], (LobbyService.LobbiesListener)args[1]
source, (String)args[0], (LobbyService.LobbiesListener)args[1]
);
return;
@@ -24,7 +24,6 @@ package com.threerings.micasa.lobby;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import java.util.List;
/**
@@ -38,7 +37,7 @@ public class LobbyMarshaller extends InvocationMarshaller
implements LobbyService
{
/**
* Marshalls results to implementations of {@link CategoriesListener}.
* Marshalls results to implementations of {@link LobbyService.CategoriesListener}.
*/
public static class CategoriesMarshaller extends ListenerMarshaller
implements CategoriesListener
@@ -73,7 +72,7 @@ public class LobbyMarshaller extends InvocationMarshaller
}
/**
* Marshalls results to implementations of {@link LobbiesListener}.
* Marshalls results to implementations of {@link LobbyService.LobbiesListener}.
*/
public static class LobbiesMarshaller extends ListenerMarshaller
implements LobbiesListener
@@ -83,7 +82,7 @@ public class LobbyMarshaller extends InvocationMarshaller
public static final int GOT_LOBBIES = 1;
// from interface LobbiesMarshaller
public void gotLobbies (List<com.threerings.micasa.lobby.Lobby> arg1)
public void gotLobbies (List<Lobby> arg1)
{
_invId = null;
omgr.postEvent(new InvocationResponseEvent(
@@ -92,12 +91,13 @@ public class LobbyMarshaller extends InvocationMarshaller
}
@Override // from InvocationMarshaller
@SuppressWarnings("unchecked")
public void dispatchResponse (int methodId, Object[] args)
{
switch (methodId) {
case GOT_LOBBIES:
((LobbiesListener)listener).gotLobbies(
(List<com.threerings.micasa.lobby.Lobby>)args[0]);
(List<Lobby>)args[0]);
return;
default:
@@ -33,12 +33,12 @@ public interface LobbyProvider extends InvocationProvider
/**
* Handles a {@link LobbyService#getCategories} request.
*/
public void getCategories (ClientObject caller, LobbyService.CategoriesListener arg1)
void getCategories (ClientObject caller, LobbyService.CategoriesListener arg1)
throws InvocationException;
/**
* Handles a {@link LobbyService#getLobbies} request.
*/
public void getLobbies (ClientObject caller, String arg1, LobbyService.LobbiesListener arg2)
void getLobbies (ClientObject caller, String arg1, LobbyService.LobbiesListener arg2)
throws InvocationException;
}
@@ -25,7 +25,6 @@ import com.threerings.micasa.simulator.client.SimulatorService;
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.net.Transport;
/**
* Provides the implementation of the {@link SimulatorService} interface
@@ -24,7 +24,6 @@ package com.threerings.micasa.simulator.server;
import com.threerings.micasa.simulator.data.SimulatorMarshaller;
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
@@ -48,7 +47,6 @@ public class SimulatorDispatcher extends InvocationDispatcher<SimulatorMarshalle
return new SimulatorMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -57,8 +55,7 @@ public class SimulatorDispatcher extends InvocationDispatcher<SimulatorMarshalle
switch (methodId) {
case SimulatorMarshaller.CREATE_GAME:
((SimulatorProvider)provider).createGame(
source,
(GameConfig)args[0], (String)args[1], ((Integer)args[2]).intValue()
source, (GameConfig)args[0], (String)args[1], ((Integer)args[2]).intValue()
);
return;
@@ -25,7 +25,6 @@ import com.threerings.parlor.card.data.Card;
import com.threerings.parlor.card.trick.client.TrickCardGameService;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.net.Transport;
/**
* Provides the implementation of the {@link TrickCardGameService} interface
@@ -54,9 +53,7 @@ public class TrickCardGameMarshaller extends InvocationMarshaller
// from interface TrickCardGameService
public void requestRematch (Client arg1)
{
sendRequest(arg1, REQUEST_REMATCH, new Object[] {
});
sendRequest(arg1, REQUEST_REMATCH, new Object[] {});
}
/** The method id used to dispatch {@link #sendCardsToPlayer} requests. */
@@ -24,7 +24,6 @@ package com.threerings.parlor.card.trick.server;
import com.threerings.parlor.card.data.Card;
import com.threerings.parlor.card.trick.data.TrickCardGameMarshaller;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
@@ -48,7 +47,6 @@ public class TrickCardGameDispatcher extends InvocationDispatcher<TrickCardGameM
return new TrickCardGameMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -57,21 +55,19 @@ public class TrickCardGameDispatcher extends InvocationDispatcher<TrickCardGameM
switch (methodId) {
case TrickCardGameMarshaller.PLAY_CARD:
((TrickCardGameProvider)provider).playCard(
source,
(Card)args[0], ((Integer)args[1]).intValue()
source, (Card)args[0], ((Integer)args[1]).intValue()
);
return;
case TrickCardGameMarshaller.REQUEST_REMATCH:
((TrickCardGameProvider)provider).requestRematch(
source
source
);
return;
case TrickCardGameMarshaller.SEND_CARDS_TO_PLAYER:
((TrickCardGameProvider)provider).sendCardsToPlayer(
source,
((Integer)args[0]).intValue(), (Card[])args[1]
source, ((Integer)args[0]).intValue(), (Card[])args[1]
);
return;
@@ -22,6 +22,7 @@
package com.threerings.parlor.card.trick.server;
import com.threerings.parlor.card.data.Card;
import com.threerings.parlor.card.trick.client.TrickCardGameService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationProvider;
@@ -33,15 +34,15 @@ public interface TrickCardGameProvider extends InvocationProvider
/**
* Handles a {@link TrickCardGameService#playCard} request.
*/
public void playCard (ClientObject caller, Card arg1, int arg2);
void playCard (ClientObject caller, Card arg1, int arg2);
/**
* Handles a {@link TrickCardGameService#requestRematch} request.
*/
public void requestRematch (ClientObject caller);
void requestRematch (ClientObject caller);
/**
* Handles a {@link TrickCardGameService#sendCardsToPlayer} request.
*/
public void sendCardsToPlayer (ClientObject caller, int arg1, Card[] arg2);
void sendCardsToPlayer (ClientObject caller, int arg1, Card[] arg2);
}
@@ -27,7 +27,6 @@ import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import com.threerings.util.Name;
/**
@@ -41,7 +40,7 @@ public class ParlorMarshaller extends InvocationMarshaller
implements ParlorService
{
/**
* Marshalls results to implementations of {@link InviteListener}.
* Marshalls results to implementations of {@link ParlorService.InviteListener}.
*/
public static class InviteMarshaller extends ListenerMarshaller
implements InviteListener
@@ -26,7 +26,6 @@ import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.net.Transport;
/**
* Provides the implementation of the {@link TableService} interface
@@ -26,7 +26,6 @@ import com.threerings.parlor.data.ParlorMarshaller;
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.InvocationService;
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.util.Name;
@@ -51,7 +50,6 @@ public class ParlorDispatcher extends InvocationDispatcher<ParlorMarshaller>
return new ParlorMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -60,29 +58,25 @@ public class ParlorDispatcher extends InvocationDispatcher<ParlorMarshaller>
switch (methodId) {
case ParlorMarshaller.CANCEL:
((ParlorProvider)provider).cancel(
source,
((Integer)args[0]).intValue(), (InvocationService.InvocationListener)args[1]
source, ((Integer)args[0]).intValue(), (InvocationService.InvocationListener)args[1]
);
return;
case ParlorMarshaller.INVITE:
((ParlorProvider)provider).invite(
source,
(Name)args[0], (GameConfig)args[1], (ParlorService.InviteListener)args[2]
source, (Name)args[0], (GameConfig)args[1], (ParlorService.InviteListener)args[2]
);
return;
case ParlorMarshaller.RESPOND:
((ParlorProvider)provider).respond(
source,
((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), args[2], (InvocationService.InvocationListener)args[3]
source, ((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), args[2], (InvocationService.InvocationListener)args[3]
);
return;
case ParlorMarshaller.START_SOLITAIRE:
((ParlorProvider)provider).startSolitaire(
source,
(GameConfig)args[0], (InvocationService.ConfirmListener)args[1]
source, (GameConfig)args[0], (InvocationService.ConfirmListener)args[1]
);
return;
@@ -37,24 +37,24 @@ public interface ParlorProvider extends InvocationProvider
/**
* Handles a {@link ParlorService#cancel} request.
*/
public void cancel (ClientObject caller, int arg1, InvocationService.InvocationListener arg2)
void cancel (ClientObject caller, int arg1, InvocationService.InvocationListener arg2)
throws InvocationException;
/**
* Handles a {@link ParlorService#invite} request.
*/
public void invite (ClientObject caller, Name arg1, GameConfig arg2, ParlorService.InviteListener arg3)
void invite (ClientObject caller, Name arg1, GameConfig arg2, ParlorService.InviteListener arg3)
throws InvocationException;
/**
* Handles a {@link ParlorService#respond} request.
*/
public void respond (ClientObject caller, int arg1, int arg2, Object arg3, InvocationService.InvocationListener arg4)
void respond (ClientObject caller, int arg1, int arg2, Object arg3, InvocationService.InvocationListener arg4)
throws InvocationException;
/**
* Handles a {@link ParlorService#startSolitaire} request.
*/
public void startSolitaire (ClientObject caller, GameConfig arg1, InvocationService.ConfirmListener arg2)
void startSolitaire (ClientObject caller, GameConfig arg1, InvocationService.ConfirmListener arg2)
throws InvocationException;
}
@@ -26,7 +26,6 @@ import com.threerings.parlor.data.TableMarshaller;
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
@@ -50,7 +49,6 @@ public class TableDispatcher extends InvocationDispatcher<TableMarshaller>
return new TableMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -59,36 +57,31 @@ public class TableDispatcher extends InvocationDispatcher<TableMarshaller>
switch (methodId) {
case TableMarshaller.BOOT_PLAYER:
((TableProvider)provider).bootPlayer(
source,
((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), (InvocationService.InvocationListener)args[2]
source, ((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), (InvocationService.InvocationListener)args[2]
);
return;
case TableMarshaller.CREATE_TABLE:
((TableProvider)provider).createTable(
source,
(TableConfig)args[0], (GameConfig)args[1], (InvocationService.ResultListener)args[2]
source, (TableConfig)args[0], (GameConfig)args[1], (InvocationService.ResultListener)args[2]
);
return;
case TableMarshaller.JOIN_TABLE:
((TableProvider)provider).joinTable(
source,
((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), (InvocationService.InvocationListener)args[2]
source, ((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), (InvocationService.InvocationListener)args[2]
);
return;
case TableMarshaller.LEAVE_TABLE:
((TableProvider)provider).leaveTable(
source,
((Integer)args[0]).intValue(), (InvocationService.InvocationListener)args[1]
source, ((Integer)args[0]).intValue(), (InvocationService.InvocationListener)args[1]
);
return;
case TableMarshaller.START_TABLE_NOW:
((TableProvider)provider).startTableNow(
source,
((Integer)args[0]).intValue(), (InvocationService.InvocationListener)args[1]
source, ((Integer)args[0]).intValue(), (InvocationService.InvocationListener)args[1]
);
return;
@@ -21,6 +21,7 @@
package com.threerings.parlor.server;
import com.threerings.parlor.client.TableService;
import com.threerings.parlor.data.TableConfig;
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.InvocationService;
@@ -36,30 +37,30 @@ public interface TableProvider extends InvocationProvider
/**
* Handles a {@link TableService#bootPlayer} request.
*/
public void bootPlayer (ClientObject caller, int arg1, int arg2, InvocationService.InvocationListener arg3)
void bootPlayer (ClientObject caller, int arg1, int arg2, InvocationService.InvocationListener arg3)
throws InvocationException;
/**
* Handles a {@link TableService#createTable} request.
*/
public void createTable (ClientObject caller, TableConfig arg1, GameConfig arg2, InvocationService.ResultListener arg3)
void createTable (ClientObject caller, TableConfig arg1, GameConfig arg2, InvocationService.ResultListener arg3)
throws InvocationException;
/**
* Handles a {@link TableService#joinTable} request.
*/
public void joinTable (ClientObject caller, int arg1, int arg2, InvocationService.InvocationListener arg3)
void joinTable (ClientObject caller, int arg1, int arg2, InvocationService.InvocationListener arg3)
throws InvocationException;
/**
* Handles a {@link TableService#leaveTable} request.
*/
public void leaveTable (ClientObject caller, int arg1, InvocationService.InvocationListener arg2)
void leaveTable (ClientObject caller, int arg1, InvocationService.InvocationListener arg2)
throws InvocationException;
/**
* Handles a {@link TableService#startTableNow} request.
*/
public void startTableNow (ClientObject caller, int arg1, InvocationService.InvocationListener arg2)
void startTableNow (ClientObject caller, int arg1, InvocationService.InvocationListener arg2)
throws InvocationException;
}
@@ -25,7 +25,6 @@ import com.threerings.parlor.tourney.client.TourneyService;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.net.Transport;
/**
* Provides the implementation of the {@link TourneyService} interface
@@ -25,7 +25,6 @@ import com.threerings.parlor.tourney.client.TourniesService;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.net.Transport;
/**
* Provides the implementation of the {@link TourniesService} interface
@@ -24,7 +24,6 @@ package com.threerings.parlor.tourney.server;
import com.threerings.parlor.tourney.data.TourneyMarshaller;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
@@ -48,7 +47,6 @@ public class TourneyDispatcher extends InvocationDispatcher<TourneyMarshaller>
return new TourneyMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -57,22 +55,19 @@ public class TourneyDispatcher extends InvocationDispatcher<TourneyMarshaller>
switch (methodId) {
case TourneyMarshaller.CANCEL:
((TourneyProvider)provider).cancel(
source,
(InvocationService.ConfirmListener)args[0]
source, (InvocationService.ConfirmListener)args[0]
);
return;
case TourneyMarshaller.JOIN:
((TourneyProvider)provider).join(
source,
(InvocationService.ConfirmListener)args[0]
source, (InvocationService.ConfirmListener)args[0]
);
return;
case TourneyMarshaller.LEAVE:
((TourneyProvider)provider).leave(
source,
(InvocationService.ConfirmListener)args[0]
source, (InvocationService.ConfirmListener)args[0]
);
return;
@@ -21,6 +21,7 @@
package com.threerings.parlor.tourney.server;
import com.threerings.parlor.tourney.client.TourneyService;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
@@ -34,18 +35,18 @@ public interface TourneyProvider extends InvocationProvider
/**
* Handles a {@link TourneyService#cancel} request.
*/
public void cancel (ClientObject caller, InvocationService.ConfirmListener arg1)
void cancel (ClientObject caller, InvocationService.ConfirmListener arg1)
throws InvocationException;
/**
* Handles a {@link TourneyService#join} request.
*/
public void join (ClientObject caller, InvocationService.ConfirmListener arg1)
void join (ClientObject caller, InvocationService.ConfirmListener arg1)
throws InvocationException;
/**
* Handles a {@link TourneyService#leave} request.
*/
public void leave (ClientObject caller, InvocationService.ConfirmListener arg1)
void leave (ClientObject caller, InvocationService.ConfirmListener arg1)
throws InvocationException;
}
@@ -25,7 +25,6 @@ import com.threerings.parlor.tourney.data.TourneyConfig;
import com.threerings.parlor.tourney.data.TourniesMarshaller;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
@@ -49,7 +48,6 @@ public class TourniesDispatcher extends InvocationDispatcher<TourniesMarshaller>
return new TourniesMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -58,8 +56,7 @@ public class TourniesDispatcher extends InvocationDispatcher<TourniesMarshaller>
switch (methodId) {
case TourniesMarshaller.CREATE_TOURNEY:
((TourniesProvider)provider).createTourney(
source,
(TourneyConfig)args[0], (InvocationService.ResultListener)args[1]
source, (TourneyConfig)args[0], (InvocationService.ResultListener)args[1]
);
return;
@@ -21,6 +21,7 @@
package com.threerings.parlor.tourney.server;
import com.threerings.parlor.tourney.client.TourniesService;
import com.threerings.parlor.tourney.data.TourneyConfig;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject;
@@ -35,6 +36,6 @@ public interface TourniesProvider extends InvocationProvider
/**
* Handles a {@link TourniesService#createTourney} request.
*/
public void createTourney (ClientObject caller, TourneyConfig arg1, InvocationService.ResultListener arg2)
void createTourney (ClientObject caller, TourneyConfig arg1, InvocationService.ResultListener arg2)
throws InvocationException;
}
@@ -23,7 +23,6 @@ package com.threerings.puzzle.data;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.net.Transport;
import com.threerings.puzzle.client.PuzzleGameService;
/**
@@ -22,7 +22,6 @@
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;
@@ -48,7 +47,6 @@ public class PuzzleGameDispatcher extends InvocationDispatcher<PuzzleGameMarshal
return new PuzzleGameMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -57,15 +55,13 @@ 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;
@@ -23,6 +23,7 @@ package com.threerings.puzzle.server;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.puzzle.client.PuzzleGameService;
import com.threerings.puzzle.data.Board;
/**
@@ -33,10 +34,10 @@ public interface PuzzleGameProvider extends InvocationProvider
/**
* Handles a {@link PuzzleGameService#updateProgress} request.
*/
public void updateProgress (ClientObject caller, int arg1, int[] arg2);
void updateProgress (ClientObject caller, int arg1, int[] arg2);
/**
* Handles a {@link PuzzleGameService#updateProgressSync} request.
*/
public void updateProgressSync (ClientObject caller, int arg1, int[] arg2, Board[] arg3);
void updateProgressSync (ClientObject caller, int arg1, int[] arg2, Board[] arg3);
}
@@ -25,7 +25,6 @@ import com.threerings.miso.data.ObjectInfo;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.net.Transport;
import com.threerings.stage.client.StageSceneService;
/**
@@ -24,7 +24,6 @@ package com.threerings.stage.server;
import com.threerings.miso.data.ObjectInfo;
import com.threerings.presents.client.InvocationService;
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.stage.data.StageSceneMarshaller;
@@ -49,7 +48,6 @@ public class StageSceneDispatcher extends InvocationDispatcher<StageSceneMarshal
return new StageSceneMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -58,15 +56,13 @@ public class StageSceneDispatcher extends InvocationDispatcher<StageSceneMarshal
switch (methodId) {
case StageSceneMarshaller.ADD_OBJECT:
((StageSceneProvider)provider).addObject(
source,
(ObjectInfo)args[0], (InvocationService.ConfirmListener)args[1]
source, (ObjectInfo)args[0], (InvocationService.ConfirmListener)args[1]
);
return;
case StageSceneMarshaller.REMOVE_OBJECTS:
((StageSceneProvider)provider).removeObjects(
source,
(ObjectInfo[])args[0], (InvocationService.ConfirmListener)args[1]
source, (ObjectInfo[])args[0], (InvocationService.ConfirmListener)args[1]
);
return;
@@ -26,6 +26,7 @@ import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.stage.client.StageSceneService;
/**
* Defines the server-side of the {@link StageSceneService}.
@@ -35,12 +36,12 @@ public interface StageSceneProvider extends InvocationProvider
/**
* Handles a {@link StageSceneService#addObject} request.
*/
public void addObject (ClientObject caller, ObjectInfo arg1, InvocationService.ConfirmListener arg2)
void addObject (ClientObject caller, ObjectInfo arg1, InvocationService.ConfirmListener arg2)
throws InvocationException;
/**
* Handles a {@link StageSceneService#removeObjects} request.
*/
public void removeObjects (ClientObject caller, ObjectInfo[] arg1, InvocationService.ConfirmListener arg2)
void removeObjects (ClientObject caller, ObjectInfo[] arg1, InvocationService.ConfirmListener arg2)
throws InvocationException;
}
@@ -25,7 +25,6 @@ import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import com.threerings.whirled.client.SceneService;
/**
@@ -39,7 +38,7 @@ public class SceneMarshaller extends InvocationMarshaller
implements SceneService
{
/**
* Marshalls results to implementations of {@link SceneMoveListener}.
* Marshalls results to implementations of {@link SceneService.SceneMoveListener}.
*/
public static class SceneMoveMarshaller extends ListenerMarshaller
implements SceneMoveListener
@@ -22,7 +22,6 @@
package com.threerings.whirled.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.whirled.client.SceneService;
@@ -48,7 +47,6 @@ public class SceneDispatcher extends InvocationDispatcher<SceneMarshaller>
return new SceneMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -57,8 +55,7 @@ public class SceneDispatcher extends InvocationDispatcher<SceneMarshaller>
switch (methodId) {
case SceneMarshaller.MOVE_TO:
((SceneProvider)provider).moveTo(
source,
((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), (SceneService.SceneMoveListener)args[2]
source, ((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), (SceneService.SceneMoveListener)args[2]
);
return;
@@ -34,6 +34,6 @@ public interface SceneProvider extends InvocationProvider
/**
* Handles a {@link SceneService#moveTo} request.
*/
public void moveTo (ClientObject caller, int arg1, int arg2, SceneService.SceneMoveListener arg3)
void moveTo (ClientObject caller, int arg1, int arg2, SceneService.SceneMoveListener arg3)
throws InvocationException;
}
@@ -24,7 +24,6 @@ package com.threerings.whirled.spot.data;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.net.Transport;
import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneMarshaller;
import com.threerings.whirled.spot.client.SpotService;
@@ -23,7 +23,6 @@ package com.threerings.whirled.spot.server;
import com.threerings.presents.client.InvocationService;
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.whirled.client.SceneService;
@@ -50,7 +49,6 @@ public class SpotDispatcher extends InvocationDispatcher<SpotMarshaller>
return new SpotMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -59,29 +57,25 @@ public class SpotDispatcher extends InvocationDispatcher<SpotMarshaller>
switch (methodId) {
case SpotMarshaller.CHANGE_LOCATION:
((SpotProvider)provider).changeLocation(
source,
((Integer)args[0]).intValue(), (Location)args[1], (InvocationService.ConfirmListener)args[2]
source, ((Integer)args[0]).intValue(), (Location)args[1], (InvocationService.ConfirmListener)args[2]
);
return;
case SpotMarshaller.CLUSTER_SPEAK:
((SpotProvider)provider).clusterSpeak(
source,
(String)args[0], ((Byte)args[1]).byteValue()
source, (String)args[0], ((Byte)args[1]).byteValue()
);
return;
case SpotMarshaller.JOIN_CLUSTER:
((SpotProvider)provider).joinCluster(
source,
((Integer)args[0]).intValue(), (InvocationService.ConfirmListener)args[1]
source, ((Integer)args[0]).intValue(), (InvocationService.ConfirmListener)args[1]
);
return;
case SpotMarshaller.TRAVERSE_PORTAL:
((SpotProvider)provider).traversePortal(
source,
((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), ((Integer)args[2]).intValue(), (SceneService.SceneMoveListener)args[3]
source, ((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), ((Integer)args[2]).intValue(), (SceneService.SceneMoveListener)args[3]
);
return;
@@ -26,6 +26,7 @@ import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.spot.client.SpotService;
import com.threerings.whirled.spot.data.Location;
/**
@@ -36,23 +37,23 @@ public interface SpotProvider extends InvocationProvider
/**
* Handles a {@link SpotService#changeLocation} request.
*/
public void changeLocation (ClientObject caller, int arg1, Location arg2, InvocationService.ConfirmListener arg3)
void changeLocation (ClientObject caller, int arg1, Location arg2, InvocationService.ConfirmListener arg3)
throws InvocationException;
/**
* Handles a {@link SpotService#clusterSpeak} request.
*/
public void clusterSpeak (ClientObject caller, String arg1, byte arg2);
void clusterSpeak (ClientObject caller, String arg1, byte arg2);
/**
* Handles a {@link SpotService#joinCluster} request.
*/
public void joinCluster (ClientObject caller, int arg1, InvocationService.ConfirmListener arg2)
void joinCluster (ClientObject caller, int arg1, InvocationService.ConfirmListener arg2)
throws InvocationException;
/**
* Handles a {@link SpotService#traversePortal} request.
*/
public void traversePortal (ClientObject caller, int arg1, int arg2, int arg3, SceneService.SceneMoveListener arg4)
void traversePortal (ClientObject caller, int arg1, int arg2, int arg3, SceneService.SceneMoveListener arg4)
throws InvocationException;
}
@@ -25,7 +25,6 @@ import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
import com.threerings.whirled.zone.client.ZoneService;
@@ -41,7 +40,7 @@ public class ZoneMarshaller extends InvocationMarshaller
implements ZoneService
{
/**
* Marshalls results to implementations of {@link ZoneMoveListener}.
* Marshalls results to implementations of {@link ZoneService.ZoneMoveListener}.
*/
public static class ZoneMoveMarshaller extends ListenerMarshaller
implements ZoneMoveListener
@@ -22,7 +22,6 @@
package com.threerings.whirled.zone.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.whirled.zone.client.ZoneService;
@@ -48,7 +47,6 @@ public class ZoneDispatcher extends InvocationDispatcher<ZoneMarshaller>
return new ZoneMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -57,8 +55,7 @@ public class ZoneDispatcher extends InvocationDispatcher<ZoneMarshaller>
switch (methodId) {
case ZoneMarshaller.MOVE_TO:
((ZoneProvider)provider).moveTo(
source,
((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), ((Integer)args[2]).intValue(), (ZoneService.ZoneMoveListener)args[3]
source, ((Integer)args[0]).intValue(), ((Integer)args[1]).intValue(), ((Integer)args[2]).intValue(), (ZoneService.ZoneMoveListener)args[3]
);
return;
@@ -34,6 +34,6 @@ public interface ZoneProvider extends InvocationProvider
/**
* Handles a {@link ZoneService#moveTo} request.
*/
public void moveTo (ClientObject caller, int arg1, int arg2, int arg3, ZoneService.ZoneMoveListener arg4)
void moveTo (ClientObject caller, int arg1, int arg2, int arg3, ZoneService.ZoneMoveListener arg4)
throws InvocationException;
}