Converted more dobj classes to use the gendobj script. (Had to do a wee

bit of fiddling to accomplish some things that used to be done by hand.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@973 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-08 23:55:25 +00:00
parent 05a8a19a12
commit 5581b3e65b
9 changed files with 272 additions and 76 deletions
@@ -1,5 +1,5 @@
//
// $Id: GameObject.dobj,v 1.6 2002/02/04 01:47:20 mdb Exp $
// $Id: GameObject.dobj,v 1.7 2002/02/08 23:55:25 mdb Exp $
package com.threerings.parlor.game;
@@ -18,15 +18,6 @@ import com.threerings.crowd.data.PlaceObject;
*/
public class GameObject extends PlaceObject
{
/** The field name of the <code>state</code> field. */
public static final String STATE = "state";
/** The field name of the <code>isRated</code> field. */
public static final String IS_RATED = "isRated";
/** The field name of the <code>players</code> field. */
public static final String PLAYERS = "players";
/** A game state constant indicating that the game has not yet started
* and is still awaiting the arrival of all of the players. */
public static final int AWAITING_PLAYERS = 0;
@@ -49,25 +40,4 @@ public class GameObject extends PlaceObject
/** The username of the players involved in this game. */
public String[] players;
/** Requests that the <code>state</code> field be set to the specified
* value. */
public void setState (int state)
{
requestAttributeChange(STATE, new Integer(state));
}
/** Requests that the <code>isRated</code> field be set to the
* specified value. */
public void setIsRated (boolean isRated)
{
requestAttributeChange(IS_RATED, new Boolean(isRated));
}
/** Requests that the <code>players</code> field be set to the
* specified value. */
public void setPlayers (String[] value)
{
requestAttributeChange(PLAYERS, value);
}
}