From 61c0dde5d576cd8367d9d44e6f10f30b74f756c8 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 5 Jan 2005 06:46:11 +0000 Subject: [PATCH] Regenerated the distributed objects with the new clone happy bits. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3295 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/crowd/data/PlaceObject.java | 6 +++--- .../micasa/lobby/table/TableLobbyObject.java | 6 +++--- src/java/com/threerings/parlor/game/GameObject.java | 4 ++-- .../com/threerings/presents/data/ClientObject.java | 6 +++--- .../com/threerings/puzzle/data/PuzzleObject.java | 4 ++-- .../whirled/spot/data/SpotSceneObject.java | 12 ++++++------ 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/java/com/threerings/crowd/data/PlaceObject.java b/src/java/com/threerings/crowd/data/PlaceObject.java index f18a0ff07..ca1a7b765 100644 --- a/src/java/com/threerings/crowd/data/PlaceObject.java +++ b/src/java/com/threerings/crowd/data/PlaceObject.java @@ -176,10 +176,10 @@ public class PlaceObject extends DObject * change. Proxied copies of this object (on clients) will apply the * value change when they received the attribute changed notification. */ - public void setOccupantInfo (DSet occupantInfo) + public void setOccupantInfo (DSet value) { - requestAttributeChange(OCCUPANT_INFO, occupantInfo, this.occupantInfo); - this.occupantInfo = occupantInfo; + requestAttributeChange(OCCUPANT_INFO, value, this.occupantInfo); + this.occupantInfo = (DSet)value.clone(); } /** diff --git a/src/java/com/threerings/micasa/lobby/table/TableLobbyObject.java b/src/java/com/threerings/micasa/lobby/table/TableLobbyObject.java index 004acfaaa..2745af8b2 100644 --- a/src/java/com/threerings/micasa/lobby/table/TableLobbyObject.java +++ b/src/java/com/threerings/micasa/lobby/table/TableLobbyObject.java @@ -102,10 +102,10 @@ public class TableLobbyObject * change. Proxied copies of this object (on clients) will apply the * value change when they received the attribute changed notification. */ - public void setTableSet (DSet tableSet) + public void setTableSet (DSet value) { - requestAttributeChange(TABLE_SET, tableSet, this.tableSet); - this.tableSet = tableSet; + requestAttributeChange(TABLE_SET, value, this.tableSet); + this.tableSet = (DSet)value.clone(); } // AUTO-GENERATED: METHODS END } diff --git a/src/java/com/threerings/parlor/game/GameObject.java b/src/java/com/threerings/parlor/game/GameObject.java index d2d27d556..051aac8e3 100644 --- a/src/java/com/threerings/parlor/game/GameObject.java +++ b/src/java/com/threerings/parlor/game/GameObject.java @@ -265,7 +265,7 @@ public class GameObject extends PlaceObject Name[] ovalue = this.players; requestAttributeChange( PLAYERS, value, ovalue); - this.players = value; + this.players = (Name[])value.clone(); } /** @@ -298,7 +298,7 @@ public class GameObject extends PlaceObject boolean[] ovalue = this.winners; requestAttributeChange( WINNERS, value, ovalue); - this.winners = value; + this.winners = (boolean[])value.clone(); } /** diff --git a/src/java/com/threerings/presents/data/ClientObject.java b/src/java/com/threerings/presents/data/ClientObject.java index 930f817b8..fb30c4a66 100644 --- a/src/java/com/threerings/presents/data/ClientObject.java +++ b/src/java/com/threerings/presents/data/ClientObject.java @@ -122,10 +122,10 @@ public class ClientObject extends DObject * change. Proxied copies of this object (on clients) will apply the * value change when they received the attribute changed notification. */ - public void setReceivers (DSet receivers) + public void setReceivers (DSet value) { - requestAttributeChange(RECEIVERS, receivers, this.receivers); - this.receivers = receivers; + requestAttributeChange(RECEIVERS, value, this.receivers); + this.receivers = (DSet)value.clone(); } // AUTO-GENERATED: METHODS END } diff --git a/src/java/com/threerings/puzzle/data/PuzzleObject.java b/src/java/com/threerings/puzzle/data/PuzzleObject.java index 38f4555c5..88d8ab863 100644 --- a/src/java/com/threerings/puzzle/data/PuzzleObject.java +++ b/src/java/com/threerings/puzzle/data/PuzzleObject.java @@ -145,7 +145,7 @@ public class PuzzleObject extends GameObject int[] ovalue = this.playerStatus; requestAttributeChange( PLAYER_STATUS, value, ovalue); - this.playerStatus = value; + this.playerStatus = (int[])value.clone(); } /** @@ -178,7 +178,7 @@ public class PuzzleObject extends GameObject BoardSummary[] ovalue = this.summaries; requestAttributeChange( SUMMARIES, value, ovalue); - this.summaries = value; + this.summaries = (BoardSummary[])value.clone(); } /** diff --git a/src/java/com/threerings/whirled/spot/data/SpotSceneObject.java b/src/java/com/threerings/whirled/spot/data/SpotSceneObject.java index 76bd85e93..ddd0b4972 100644 --- a/src/java/com/threerings/whirled/spot/data/SpotSceneObject.java +++ b/src/java/com/threerings/whirled/spot/data/SpotSceneObject.java @@ -85,10 +85,10 @@ public class SpotSceneObject extends SceneObject * change. Proxied copies of this object (on clients) will apply the * value change when they received the attribute changed notification. */ - public void setOccupantLocs (DSet occupantLocs) + public void setOccupantLocs (DSet value) { - requestAttributeChange(OCCUPANT_LOCS, occupantLocs, this.occupantLocs); - this.occupantLocs = occupantLocs; + requestAttributeChange(OCCUPANT_LOCS, value, this.occupantLocs); + this.occupantLocs = (DSet)value.clone(); } /** @@ -131,10 +131,10 @@ public class SpotSceneObject extends SceneObject * change. Proxied copies of this object (on clients) will apply the * value change when they received the attribute changed notification. */ - public void setClusters (DSet clusters) + public void setClusters (DSet value) { - requestAttributeChange(CLUSTERS, clusters, this.clusters); - this.clusters = clusters; + requestAttributeChange(CLUSTERS, value, this.clusters); + this.clusters = (DSet)value.clone(); } // AUTO-GENERATED: METHODS END }