Prune unneeded imports, nuke some unneeded casts, rerun code generators.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@687 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -54,15 +54,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;
|
||||||
|
|
||||||
|
|||||||
@@ -56,8 +56,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;
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
package com.threerings.parlor.card.client;
|
package com.threerings.parlor.card.client;
|
||||||
|
|
||||||
import com.threerings.parlor.card.client.CardGameReceiver;
|
|
||||||
import com.threerings.parlor.card.data.Card;
|
import com.threerings.parlor.card.data.Card;
|
||||||
import com.threerings.parlor.card.data.Hand;
|
import com.threerings.parlor.card.data.Hand;
|
||||||
import com.threerings.presents.client.InvocationDecoder;
|
import com.threerings.presents.client.InvocationDecoder;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
package com.threerings.parlor.card.server;
|
package com.threerings.parlor.card.server;
|
||||||
|
|
||||||
import com.threerings.parlor.card.client.CardGameDecoder;
|
import com.threerings.parlor.card.client.CardGameDecoder;
|
||||||
import com.threerings.parlor.card.client.CardGameReceiver;
|
|
||||||
import com.threerings.parlor.card.data.Card;
|
import com.threerings.parlor.card.data.Card;
|
||||||
import com.threerings.parlor.card.data.Hand;
|
import com.threerings.parlor.card.data.Hand;
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
|
|||||||
@@ -56,21 +56,19 @@ 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;
|
||||||
|
|
||||||
case TrickCardGameMarshaller.REQUEST_REMATCH:
|
case TrickCardGameMarshaller.REQUEST_REMATCH:
|
||||||
((TrickCardGameProvider)provider).requestRematch(
|
((TrickCardGameProvider)provider).requestRematch(
|
||||||
source
|
source
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
package com.threerings.parlor.client;
|
package com.threerings.parlor.client;
|
||||||
|
|
||||||
import com.threerings.parlor.client.ParlorReceiver;
|
|
||||||
import com.threerings.parlor.game.data.GameConfig;
|
import com.threerings.parlor.game.data.GameConfig;
|
||||||
import com.threerings.presents.client.InvocationDecoder;
|
import com.threerings.presents.client.InvocationDecoder;
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|||||||
@@ -59,29 +59,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;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
package com.threerings.parlor.server;
|
package com.threerings.parlor.server;
|
||||||
|
|
||||||
import com.threerings.parlor.client.ParlorDecoder;
|
import com.threerings.parlor.client.ParlorDecoder;
|
||||||
import com.threerings.parlor.client.ParlorReceiver;
|
|
||||||
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.server.InvocationSender;
|
import com.threerings.presents.server.InvocationSender;
|
||||||
|
|||||||
@@ -58,29 +58,25 @@ public class TableDispatcher extends InvocationDispatcher<TableMarshaller>
|
|||||||
switch (methodId) {
|
switch (methodId) {
|
||||||
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;
|
||||||
|
|||||||
@@ -181,10 +181,10 @@ public class TourneyObject extends DObject
|
|||||||
* change. Proxied copies of this object (on clients) will apply the
|
* change. Proxied copies of this object (on clients) will apply the
|
||||||
* value change when they received the attribute changed notification.
|
* value change when they received the attribute changed notification.
|
||||||
*/
|
*/
|
||||||
public void setParticipants (DSet<com.threerings.parlor.tourney.data.Participant> value)
|
public void setParticipants (DSet<Participant> value)
|
||||||
{
|
{
|
||||||
requestAttributeChange(PARTICIPANTS, value, this.participants);
|
requestAttributeChange(PARTICIPANTS, value, this.participants);
|
||||||
@SuppressWarnings("unchecked") DSet<com.threerings.parlor.tourney.data.Participant> clone =
|
@SuppressWarnings("unchecked") DSet<Participant> clone =
|
||||||
(value == null) ? null : value.typedClone();
|
(value == null) ? null : value.typedClone();
|
||||||
this.participants = clone;
|
this.participants = clone;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,22 +56,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;
|
||||||
|
|||||||
@@ -57,8 +57,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;
|
||||||
|
|||||||
@@ -56,15 +56,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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -57,15 +57,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}.
|
||||||
|
|||||||
@@ -98,8 +98,8 @@ public class IntSetStat extends SetStat<Integer>
|
|||||||
public void unpersistFrom (ObjectInputStream in, AuxDataSource aux)
|
public void unpersistFrom (ObjectInputStream in, AuxDataSource aux)
|
||||||
throws IOException, ClassNotFoundException
|
throws IOException, ClassNotFoundException
|
||||||
{
|
{
|
||||||
_maxSize = ((int)in.readByte()) + 128;
|
_maxSize = in.readByte() + 128;
|
||||||
int numValues = ((int)in.readByte()) + 128;
|
int numValues = in.readByte() + 128;
|
||||||
_intSet = new StreamableArrayIntSet(numValues);
|
_intSet = new StreamableArrayIntSet(numValues);
|
||||||
for (int ii = 0; ii < numValues; ii++) {
|
for (int ii = 0; ii < numValues; ii++) {
|
||||||
_intSet.add(in.readInt());
|
_intSet.add(in.readInt());
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
package com.threerings.whirled.client;
|
package com.threerings.whirled.client;
|
||||||
|
|
||||||
import com.threerings.presents.client.InvocationDecoder;
|
import com.threerings.presents.client.InvocationDecoder;
|
||||||
import com.threerings.whirled.client.SceneReceiver;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dispatches calls to a {@link SceneReceiver} instance.
|
* Dispatches calls to a {@link SceneReceiver} instance.
|
||||||
|
|||||||
@@ -56,8 +56,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;
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ package com.threerings.whirled.server;
|
|||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.server.InvocationSender;
|
import com.threerings.presents.server.InvocationSender;
|
||||||
import com.threerings.whirled.client.SceneDecoder;
|
import com.threerings.whirled.client.SceneDecoder;
|
||||||
import com.threerings.whirled.client.SceneReceiver;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to issue notifications to a {@link SceneReceiver} instance on a
|
* Used to issue notifications to a {@link SceneReceiver} instance on a
|
||||||
|
|||||||
@@ -85,10 +85,10 @@ public class SpotSceneObject extends SceneObject
|
|||||||
* change. Proxied copies of this object (on clients) will apply the
|
* change. Proxied copies of this object (on clients) will apply the
|
||||||
* value change when they received the attribute changed notification.
|
* value change when they received the attribute changed notification.
|
||||||
*/
|
*/
|
||||||
public void setOccupantLocs (DSet<com.threerings.whirled.spot.data.SceneLocation> value)
|
public void setOccupantLocs (DSet<SceneLocation> value)
|
||||||
{
|
{
|
||||||
requestAttributeChange(OCCUPANT_LOCS, value, this.occupantLocs);
|
requestAttributeChange(OCCUPANT_LOCS, value, this.occupantLocs);
|
||||||
@SuppressWarnings("unchecked") DSet<com.threerings.whirled.spot.data.SceneLocation> clone =
|
@SuppressWarnings("unchecked") DSet<SceneLocation> clone =
|
||||||
(value == null) ? null : value.typedClone();
|
(value == null) ? null : value.typedClone();
|
||||||
this.occupantLocs = clone;
|
this.occupantLocs = clone;
|
||||||
}
|
}
|
||||||
@@ -133,10 +133,10 @@ public class SpotSceneObject extends SceneObject
|
|||||||
* change. Proxied copies of this object (on clients) will apply the
|
* change. Proxied copies of this object (on clients) will apply the
|
||||||
* value change when they received the attribute changed notification.
|
* value change when they received the attribute changed notification.
|
||||||
*/
|
*/
|
||||||
public void setClusters (DSet<com.threerings.whirled.spot.data.Cluster> value)
|
public void setClusters (DSet<Cluster> value)
|
||||||
{
|
{
|
||||||
requestAttributeChange(CLUSTERS, value, this.clusters);
|
requestAttributeChange(CLUSTERS, value, this.clusters);
|
||||||
@SuppressWarnings("unchecked") DSet<com.threerings.whirled.spot.data.Cluster> clone =
|
@SuppressWarnings("unchecked") DSet<Cluster> clone =
|
||||||
(value == null) ? null : value.typedClone();
|
(value == null) ? null : value.typedClone();
|
||||||
this.clusters = clone;
|
this.clusters = clone;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,29 +58,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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
package com.threerings.whirled.zone.client;
|
package com.threerings.whirled.zone.client;
|
||||||
|
|
||||||
import com.threerings.presents.client.InvocationDecoder;
|
import com.threerings.presents.client.InvocationDecoder;
|
||||||
import com.threerings.whirled.zone.client.ZoneReceiver;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dispatches calls to a {@link ZoneReceiver} instance.
|
* Dispatches calls to a {@link ZoneReceiver} instance.
|
||||||
|
|||||||
@@ -56,8 +56,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;
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ package com.threerings.whirled.zone.server;
|
|||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.server.InvocationSender;
|
import com.threerings.presents.server.InvocationSender;
|
||||||
import com.threerings.whirled.zone.client.ZoneDecoder;
|
import com.threerings.whirled.zone.client.ZoneDecoder;
|
||||||
import com.threerings.whirled.zone.client.ZoneReceiver;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to issue notifications to a {@link ZoneReceiver} instance on a
|
* Used to issue notifications to a {@link ZoneReceiver} instance on a
|
||||||
|
|||||||
Reference in New Issue
Block a user