Extracted PlaceObject and BodyObject into dobj definition files and

checked in their generated counterparts (which we want available for
javadoc-type stuff and so that we don't have to see CVS claim no knowledge
of them for the rest of time).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@968 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-08 23:10:36 +00:00
parent f28a0b8c7a
commit 1258fee18b
4 changed files with 143 additions and 81 deletions
@@ -0,0 +1,68 @@
//
// $Id: BodyObject.java,v 1.1 2002/02/08 23:10:36 mdb Exp $
package com.threerings.crowd.data;
import com.threerings.presents.data.ClientObject;
public class BodyObject extends ClientObject
{
/** The field name of the <code>username</code> field. */
public static final String USERNAME = "username";
/** The field name of the <code>location</code> field. */
public static final String LOCATION = "location";
/**
* The username associated with this body object.
*/
public String username;
/**
* The oid of the place currently occupied by this body or -1 if they
* currently occupy no place.
*/
public int location = -1;
/**
* Requests that the <code>username</code> field be set to the specified
* value.
*/
public void setUsername (String username)
{
requestAttributeChange(USERNAME, username);
}
/**
* Requests that the <code>username</code> field be set to the
* specified value and immediately updates the state of the object
* to reflect the change. This should <em>only</em> be called on the
* server and only then if you know what you're doing.
*/
public void setUsernameImmediate (String username)
{
this.username = username;
requestAttributeChange(USERNAME, username);
}
/**
* Requests that the <code>location</code> field be set to the specified
* value.
*/
public void setLocation (int location)
{
requestAttributeChange(LOCATION, new Integer(location));
}
/**
* Requests that the <code>location</code> field be set to the
* specified value and immediately updates the state of the object
* to reflect the change. This should <em>only</em> be called on the
* server and only then if you know what you're doing.
*/
public void setLocationImmediate (int location)
{
this.location = location;
requestAttributeChange(LOCATION, new Integer(location));
}
}