Commented out upstream methods for classes that will never use them.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@71 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-09-11 20:19:25 +00:00
parent cbdc73381c
commit 854986f4fc
7 changed files with 378 additions and 354 deletions
@@ -64,23 +64,23 @@ public class EZGameObject extends GameObject
return players; return players;
} }
// AUTO-GENERATED: METHODS START // // AUTO-GENERATED: METHODS START
/** // /**
* Requests that the <code>turnHolder</code> field be set to the // * Requests that the <code>turnHolder</code> field be set to the
* specified value. The local value will be updated immediately and an // * specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners // * event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on // * that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the // * clients) will apply the value change when they received the
* attribute changed notification. // * attribute changed notification.
*/ // */
public function setTurnHolder (value :Name) :void // public function setTurnHolder (value :Name) :void
{ // {
var ovalue :Name = this.turnHolder; // var ovalue :Name = this.turnHolder;
requestAttributeChange( // requestAttributeChange(
TURN_HOLDER, value, ovalue); // TURN_HOLDER, value, ovalue);
this.turnHolder = value; // this.turnHolder = value;
} // }
// AUTO-GENERATED: METHODS END // // AUTO-GENERATED: METHODS END
/** /**
* Called by a PropertySetEvent to enact a property change. * Called by a PropertySetEvent to enact a property change.
@@ -111,12 +111,19 @@ public class EZGameObject extends GameObject
return oldValue; return oldValue;
} }
override public function writeObject (out :ObjectOutputStream) :void // override public function writeObject (out :ObjectOutputStream) :void
{ // {
super.writeObject(out); // super.writeObject(out);
//
throw new Error("Un-needed"); // out.writeObject(turnHolder);
} // out.writeObject(ezGameService);
//
// out.writeInt(_props.length);
// for (var key :String in _props) {
// out.writeUTF(key);
// out.writeObject(EZObjectMarshaller.encode(_props[key]));
// }
// }
override public function readObject (ins :ObjectInputStream) :void override public function readObject (ins :ObjectInputStream) :void
{ {
@@ -258,204 +258,204 @@ public class GameObject extends PlaceObject
buf.append(":").append(state); buf.append(":").append(state);
} }
// AUTO-GENERATED: METHODS START // // AUTO-GENERATED: METHODS START
/** // /**
* Requests that the <code>gameService</code> field be set to the // * Requests that the <code>gameService</code> field be set to the
* specified value. The local value will be updated immediately and an // * specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners // * event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on // * that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the // * clients) will apply the value change when they received the
* attribute changed notification. // * attribute changed notification.
*/ // */
public function setGameService (value :GameMarshaller) :void // public function setGameService (value :GameMarshaller) :void
{ // {
var ovalue :GameMarshaller = this.gameService; // var ovalue :GameMarshaller = this.gameService;
requestAttributeChange( // requestAttributeChange(
GAME_SERVICE, value, ovalue); // GAME_SERVICE, value, ovalue);
this.gameService = value; // this.gameService = value;
} // }
//
/** // /**
* Requests that the <code>state</code> field be set to the // * Requests that the <code>state</code> field be set to the
* specified value. The local value will be updated immediately and an // * specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners // * event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on // * that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the // * clients) will apply the value change when they received the
* attribute changed notification. // * attribute changed notification.
*/ // */
public function setState (value :int) :void // public function setState (value :int) :void
{ // {
var ovalue :int = this.state; // var ovalue :int = this.state;
requestAttributeChange( // requestAttributeChange(
STATE, Integer.valueOf(value), Integer.valueOf(ovalue)); // STATE, Integer.valueOf(value), Integer.valueOf(ovalue));
this.state = value; // this.state = value;
} // }
//
/** // /**
* Requests that the <code>isRated</code> field be set to the // * Requests that the <code>isRated</code> field be set to the
* specified value. The local value will be updated immediately and an // * specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners // * event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on // * that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the // * clients) will apply the value change when they received the
* attribute changed notification. // * attribute changed notification.
*/ // */
public function setIsRated (value :Boolean) :void // public function setIsRated (value :Boolean) :void
{ // {
var ovalue :Boolean = this.isRated; // var ovalue :Boolean = this.isRated;
requestAttributeChange( // requestAttributeChange(
IS_RATED, langBoolean.valueOf(value), langBoolean.valueOf(ovalue)); // IS_RATED, langBoolean.valueOf(value), langBoolean.valueOf(ovalue));
this.isRated = value; // this.isRated = value;
} // }
//
/** // /**
* Requests that the <code>isPrivate</code> field be set to the // * Requests that the <code>isPrivate</code> field be set to the
* specified value. The local value will be updated immediately and an // * specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners // * event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on // * that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the // * clients) will apply the value change when they received the
* attribute changed notification. // * attribute changed notification.
*/ // */
public function setIsPrivate (value :Boolean) :void // public function setIsPrivate (value :Boolean) :void
{ // {
var ovalue :Boolean = this.isPrivate; // var ovalue :Boolean = this.isPrivate;
requestAttributeChange( // requestAttributeChange(
IS_PRIVATE, langBoolean.valueOf(value), // IS_PRIVATE, langBoolean.valueOf(value),
langBoolean.valueOf(ovalue)); // langBoolean.valueOf(ovalue));
this.isPrivate = value; // this.isPrivate = value;
} // }
//
/** // /**
* Requests that the <code>players</code> field be set to the // * Requests that the <code>players</code> field be set to the
* specified value. The local value will be updated immediately and an // * specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners // * event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on // * that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the // * clients) will apply the value change when they received the
* attribute changed notification. // * attribute changed notification.
*/ // */
public function setPlayers (value :TypedArray) :void // public function setPlayers (value :TypedArray) :void
{ // {
var ovalue :TypedArray = this.players; // var ovalue :TypedArray = this.players;
requestAttributeChange( // requestAttributeChange(
PLAYERS, value, ovalue); // PLAYERS, value, ovalue);
this.players = (value == null) ? null : (value.clone() as TypedArray); // this.players = (value == null) ? null : (value.clone() as TypedArray);
} // }
//
/** // /**
* Requests that the <code>index</code>th element of // * Requests that the <code>index</code>th element of
* <code>players</code> field be set to the specified value. // * <code>players</code> field be set to the specified value.
* The local value will be updated immediately and an event will be // * The local value will be updated immediately and an event will be
* propagated through the system to notify all listeners that the // * propagated through the system to notify all listeners that the
* attribute did change. Proxied copies of this object (on clients) // * attribute did change. Proxied copies of this object (on clients)
* will apply the value change when they received the attribute // * will apply the value change when they received the attribute
* changed notification. // * changed notification.
*/ // */
public function setPlayersAt (value :Name, index :int) :void // public function setPlayersAt (value :Name, index :int) :void
{ // {
var ovalue :Name = (this.players[index] as Name); // var ovalue :Name = (this.players[index] as Name);
requestElementUpdate( // requestElementUpdate(
PLAYERS, index, value, ovalue); // PLAYERS, index, value, ovalue);
this.players[index] = value; // this.players[index] = value;
} // }
//
/** // /**
* Requests that the <code>winners</code> field be set to the // * Requests that the <code>winners</code> field be set to the
* specified value. The local value will be updated immediately and an // * specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners // * event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on // * that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the // * clients) will apply the value change when they received the
* attribute changed notification. // * attribute changed notification.
*/ // */
public function setWinners (value :TypedArray) :void // public function setWinners (value :TypedArray) :void
{ // {
var ovalue :TypedArray = this.winners; // var ovalue :TypedArray = this.winners;
requestAttributeChange( // requestAttributeChange(
WINNERS, value, ovalue); // WINNERS, value, ovalue);
this.winners = (value == null) ? null : (value.clone() as TypedArray); // this.winners = (value == null) ? null : (value.clone() as TypedArray);
} // }
//
/** // /**
* Requests that the <code>index</code>th element of // * Requests that the <code>index</code>th element of
* <code>winners</code> field be set to the specified value. // * <code>winners</code> field be set to the specified value.
* The local value will be updated immediately and an event will be // * The local value will be updated immediately and an event will be
* propagated through the system to notify all listeners that the // * propagated through the system to notify all listeners that the
* attribute did change. Proxied copies of this object (on clients) // * attribute did change. Proxied copies of this object (on clients)
* will apply the value change when they received the attribute // * will apply the value change when they received the attribute
* changed notification. // * changed notification.
*/ // */
public function setWinnersAt (value :Boolean, index :int) :void // public function setWinnersAt (value :Boolean, index :int) :void
{ // {
var ovalue :Boolean = (this.winners[index] as Boolean); // var ovalue :Boolean = (this.winners[index] as Boolean);
requestElementUpdate( // requestElementUpdate(
WINNERS, index, langBoolean.valueOf(value), // WINNERS, index, langBoolean.valueOf(value),
langBoolean.valueOf(ovalue)); // langBoolean.valueOf(ovalue));
this.winners[index] = value; // this.winners[index] = value;
} // }
//
/** // /**
* Requests that the <code>roundId</code> field be set to the // * Requests that the <code>roundId</code> field be set to the
* specified value. The local value will be updated immediately and an // * specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners // * event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on // * that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the // * clients) will apply the value change when they received the
* attribute changed notification. // * attribute changed notification.
*/ // */
public function setRoundId (value :int) :void // public function setRoundId (value :int) :void
{ // {
var ovalue :int = this.roundId; // var ovalue :int = this.roundId;
requestAttributeChange( // requestAttributeChange(
ROUND_ID, Integer.valueOf(value), Integer.valueOf(ovalue)); // ROUND_ID, Integer.valueOf(value), Integer.valueOf(ovalue));
this.roundId = value; // this.roundId = value;
} // }
//
/** // /**
* Requests that the <code>playerStatus</code> field be set to the // * Requests that the <code>playerStatus</code> field be set to the
* specified value. The local value will be updated immediately and an // * specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners // * event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on // * that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the // * clients) will apply the value change when they received the
* attribute changed notification. // * attribute changed notification.
*/ // */
public function setPlayerStatus (value :TypedArray) :void // public function setPlayerStatus (value :TypedArray) :void
{ // {
var ovalue :TypedArray = this.playerStatus; // var ovalue :TypedArray = this.playerStatus;
requestAttributeChange( // requestAttributeChange(
PLAYER_STATUS, value, ovalue); // PLAYER_STATUS, value, ovalue);
this.playerStatus = (value == null) ? null // this.playerStatus = (value == null) ? null
: (value.clone() as TypedArray); // : (value.clone() as TypedArray);
} // }
//
/** // /**
* Requests that the <code>index</code>th element of // * Requests that the <code>index</code>th element of
* <code>playerStatus</code> field be set to the specified value. // * <code>playerStatus</code> field be set to the specified value.
* The local value will be updated immediately and an event will be // * The local value will be updated immediately and an event will be
* propagated through the system to notify all listeners that the // * propagated through the system to notify all listeners that the
* attribute did change. Proxied copies of this object (on clients) // * attribute did change. Proxied copies of this object (on clients)
* will apply the value change when they received the attribute // * will apply the value change when they received the attribute
* changed notification. // * changed notification.
*/ // */
public function setPlayerStatusAt (value :int, index :int) :void // public function setPlayerStatusAt (value :int, index :int) :void
{ // {
var ovalue :int = (this.playerStatus[index] as int); // var ovalue :int = (this.playerStatus[index] as int);
requestElementUpdate( // requestElementUpdate(
PLAYER_STATUS, index, Integer.valueOf(value), // PLAYER_STATUS, index, Integer.valueOf(value),
Integer.valueOf(ovalue)); // Integer.valueOf(ovalue));
this.playerStatus[index] = value; // this.playerStatus[index] = value;
} // }
// AUTO-GENERATED: METHODS END // // AUTO-GENERATED: METHODS END
//
override public function writeObject (out :ObjectOutputStream) :void // override public function writeObject (out :ObjectOutputStream) :void
{ // {
super.writeObject(out); // super.writeObject(out);
//
out.writeObject(gameService); // out.writeObject(gameService);
out.writeInt(state); // out.writeInt(state);
out.writeBoolean(isRated); // out.writeBoolean(isRated);
out.writeBoolean(isPrivate); // out.writeBoolean(isPrivate);
out.writeObject(players); // out.writeObject(players);
out.writeField(winners); // out.writeField(winners);
out.writeInt(roundId); // out.writeInt(roundId);
out.writeField(playerStatus); // out.writeField(playerStatus);
} // }
override public function readObject (ins :ObjectInputStream) :void override public function readObject (ins :ObjectInputStream) :void
{ {
@@ -47,11 +47,11 @@ public interface TurnGameObject
*/ */
function getTurnHolder () :Name; function getTurnHolder () :Name;
/** // /**
* Requests that the <code>turnHolder</code> field be set to the specified // * Requests that the <code>turnHolder</code> field be set to the specified
* value. // * value.
*/ // */
function setTurnHolder (turnHolder :Name) :void; // function setTurnHolder (turnHolder :Name) :void;
/** /**
* Returns the array of player names involved in the game. * Returns the array of player names involved in the game.
@@ -32,9 +32,9 @@ public interface ScenedBodyObject
*/ */
function getSceneId () :int; function getSceneId () :int;
/** // /**
* Sets the scene id currently occupied by this body. // * Sets the scene id currently occupied by this body.
*/ // */
function setSceneId (sceneId :int) :void; // function setSceneId (sceneId :int) :void;
} }
} }
@@ -21,6 +21,9 @@
package com.threerings.whirled.spot.data { package com.threerings.whirled.spot.data {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.presents.dobj.DObject; import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.OidList; import com.threerings.presents.dobj.OidList;
@@ -39,26 +42,40 @@ public class ClusterObject extends DObject
*/ */
public var occupants :OidList = new OidList(); public var occupants :OidList = new OidList();
// AUTO-GENERATED: METHODS START // // AUTO-GENERATED: METHODS START
/** // /**
* Requests that <code>oid</code> be added to the <code>occupants</code> // * Requests that <code>oid</code> be added to the <code>occupants</code>
* oid list. The list will not change until the event is actually // * oid list. The list will not change until the event is actually
* propagated through the system. // * propagated through the system.
*/ // */
public function addToOccupants (oid :int) :void // public function addToOccupants (oid :int) :void
{ // {
requestOidAdd(OCCUPANTS, oid); // requestOidAdd(OCCUPANTS, oid);
} // }
//
// /**
// * Requests that <code>oid</code> be removed from the
// * <code>occupants</code> oid list. The list will not change until the
// * event is actually propagated through the system.
// */
// public function removeFromOccupants (oid :int) :void
// {
// requestOidRemove(OCCUPANTS, oid);
// }
// // AUTO-GENERATED: METHODS END
//
// override public function writeObject (out :ObjectOutputStream) :void
// {
// super.writeObject(out);
//
// out.writeObject(occupants);
// }
/** override public function readObject (ins :ObjectInputStream) :void
* Requests that <code>oid</code> be removed from the
* <code>occupants</code> oid list. The list will not change until the
* event is actually propagated through the system.
*/
public function removeFromOccupants (oid :int) :void
{ {
requestOidRemove(OCCUPANTS, oid); super.readObject(ins);
occupants = (ins.readObject() as OidList);
} }
// AUTO-GENERATED: METHODS END
} }
} }
@@ -40,9 +40,9 @@ public interface ClusteredBodyObject extends ScenedBodyObject
*/ */
function getClusterOid () :int; function getClusterOid () :int;
/** // /**
* Sets the oid of the cluster to which this user currently belongs. // * Sets the oid of the cluster to which this user currently belongs.
*/ // */
function setClusterOid (clusterOid :int) :void; // function setClusterOid (clusterOid :int) :void;
} }
} }
@@ -48,108 +48,108 @@ public class SpotSceneObject extends SceneObject
/** Contains information on all {@link Cluster}s in this scene. */ /** Contains information on all {@link Cluster}s in this scene. */
public var clusters :DSet = new DSet(); public var clusters :DSet = new DSet();
// AUTO-GENERATED: METHODS START // // AUTO-GENERATED: METHODS START
/** // /**
* Requests that the specified entry be added to the // * Requests that the specified entry be added to the
* <code>occupantLocs</code> set. The set will not change until the event is // * <code>occupantLocs</code> set. The set will not change until the event is
* actually propagated through the system. // * actually propagated through the system.
*/ // */
public function addToOccupantLocs (elem :DSet_Entry) :void // public function addToOccupantLocs (elem :DSet_Entry) :void
{ // {
requestEntryAdd(OCCUPANT_LOCS, elem); // requestEntryAdd(OCCUPANT_LOCS, elem);
} // }
//
/** // /**
* Requests that the entry matching the supplied key be removed from // * Requests that the entry matching the supplied key be removed from
* the <code>occupantLocs</code> set. The set will not change until the // * the <code>occupantLocs</code> set. The set will not change until the
* event is actually propagated through the system. // * event is actually propagated through the system.
*/ // */
public function removeFromOccupantLocs (key :Object) :void // public function removeFromOccupantLocs (key :Object) :void
{ // {
requestEntryRemove(OCCUPANT_LOCS, key); // requestEntryRemove(OCCUPANT_LOCS, key);
} // }
//
/** // /**
* Requests that the specified entry be updated in the // * Requests that the specified entry be updated in the
* <code>occupantLocs</code> set. The set will not change until the event is // * <code>occupantLocs</code> set. The set will not change until the event is
* actually propagated through the system. // * actually propagated through the system.
*/ // */
public function updateOccupantLocs (elem :DSet_Entry) :void // public function updateOccupantLocs (elem :DSet_Entry) :void
{ // {
requestEntryUpdate(OCCUPANT_LOCS, elem); // requestEntryUpdate(OCCUPANT_LOCS, elem);
} // }
//
/** // /**
* Requests that the <code>occupantLocs</code> field be set to the // * Requests that the <code>occupantLocs</code> field be set to the
* specified value. Generally one only adds, updates and removes // * specified value. Generally one only adds, updates and removes
* entries of a distributed set, but certain situations call for a // * entries of a distributed set, but certain situations call for a
* complete replacement of the set value. The local value will be // * complete replacement of the set value. The local value will be
* updated immediately and an event will be propagated through the // * updated immediately and an event will be propagated through the
* system to notify all listeners that the attribute did // * system to notify all listeners that the attribute did
* 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 function setOccupantLocs (value :DSet) :void // public function setOccupantLocs (value :DSet) :void
{ // {
requestAttributeChange(OCCUPANT_LOCS, value, this.occupantLocs); // requestAttributeChange(OCCUPANT_LOCS, value, this.occupantLocs);
this.occupantLocs = value; // this.occupantLocs = value;
} // }
//
/** // /**
* Requests that the specified entry be added to the // * Requests that the specified entry be added to the
* <code>clusters</code> set. The set will not change until the event is // * <code>clusters</code> set. The set will not change until the event is
* actually propagated through the system. // * actually propagated through the system.
*/ // */
public function addToClusters (elem :DSet_Entry) :void // public function addToClusters (elem :DSet_Entry) :void
{ // {
requestEntryAdd(CLUSTERS, elem); // requestEntryAdd(CLUSTERS, elem);
} // }
//
/** // /**
* Requests that the entry matching the supplied key be removed from // * Requests that the entry matching the supplied key be removed from
* the <code>clusters</code> set. The set will not change until the // * the <code>clusters</code> set. The set will not change until the
* event is actually propagated through the system. // * event is actually propagated through the system.
*/ // */
public function removeFromClusters (key :Object) :void // public function removeFromClusters (key :Object) :void
{ // {
requestEntryRemove(CLUSTERS, key); // requestEntryRemove(CLUSTERS, key);
} // }
//
/** // /**
* Requests that the specified entry be updated in the // * Requests that the specified entry be updated in the
* <code>clusters</code> set. The set will not change until the event is // * <code>clusters</code> set. The set will not change until the event is
* actually propagated through the system. // * actually propagated through the system.
*/ // */
public function updateClusters (elem :DSet_Entry) :void // public function updateClusters (elem :DSet_Entry) :void
{ // {
requestEntryUpdate(CLUSTERS, elem); // requestEntryUpdate(CLUSTERS, elem);
} // }
//
/** // /**
* Requests that the <code>clusters</code> field be set to the // * Requests that the <code>clusters</code> field be set to the
* specified value. Generally one only adds, updates and removes // * specified value. Generally one only adds, updates and removes
* entries of a distributed set, but certain situations call for a // * entries of a distributed set, but certain situations call for a
* complete replacement of the set value. The local value will be // * complete replacement of the set value. The local value will be
* updated immediately and an event will be propagated through the // * updated immediately and an event will be propagated through the
* system to notify all listeners that the attribute did // * system to notify all listeners that the attribute did
* 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 function setClusters (value :DSet) :void // public function setClusters (value :DSet) :void
{ // {
requestAttributeChange(CLUSTERS, value, this.clusters); // requestAttributeChange(CLUSTERS, value, this.clusters);
this.clusters = value; // this.clusters = value;
} // }
// AUTO-GENERATED: METHODS END // // AUTO-GENERATED: METHODS END
//
// documentation inherited // // documentation inherited
override public function writeObject (out :ObjectOutputStream) :void // override public function writeObject (out :ObjectOutputStream) :void
{ // {
super.writeObject(out); // super.writeObject(out);
//
out.writeObject(occupantLocs); // out.writeObject(occupantLocs);
out.writeObject(clusters); // out.writeObject(clusters);
} // }
// documentation inherited // documentation inherited
override public function readObject (ins :ObjectInputStream) :void override public function readObject (ins :ObjectInputStream) :void