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,73 @@
//
// $Id: PlaceObject.java,v 1.1 2002/02/08 23:10:36 mdb Exp $
package com.threerings.crowd.data;
import com.threerings.presents.dobj.*;
public class PlaceObject extends DObject
{
/** The field name of the <code>occupants</code> field. */
public static final String OCCUPANTS = "occupants";
/** The field name of the <code>occupantInfo</code> field. */
public static final String OCCUPANT_INFO = "occupantInfo";
/**
* Tracks the oid of the body objects of all of the occupants of this
* place.
*/
public OidList occupants = new OidList();
/**
* Contains an info record (of type {@link OccupantInfo} for each
* occupant that contains information about that occupant that needs
* to be known by everyone in the place.
*/
public DSet occupantInfo = new DSet();
/**
* Requests that the specified oid be added to the
* <code>occupants</code> oid list.
*/
public void addToOccupants (int oid)
{
requestOidAdd(OCCUPANTS, oid);
}
/**
* Requests that the specified oid be removed from the
* <code>occupants</code> oid list.
*/
public void removeFromOccupants (int oid)
{
requestOidRemove(OCCUPANTS, oid);
}
/**
* Requests that the specified element be added to the
* <code>occupantInfo</code> set.
*/
public void addToOccupantInfo (DSet.Element elem)
{
requestElementAdd(OCCUPANT_INFO, elem);
}
/**
* Requests that the element matching the supplied key be removed from
* the <code>occupantInfo</code> set.
*/
public void removeFromOccupantInfo (Object key)
{
requestElementRemove(OCCUPANT_INFO, key);
}
/**
* Requests that the specified element be updated in the
* <code>occupantInfo</code> set.
*/
public void updateOccupantInfo (DSet.Element elem)
{
requestElementUpdate(OCCUPANT_INFO, elem);
}
}