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