Be speaker aware. Big brother loves us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2655 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,11 +1,17 @@
|
|||||||
//
|
//
|
||||||
// $Id: BodyObject.dobj,v 1.11 2002/10/30 00:42:37 mdb Exp $
|
// $Id: BodyObject.dobj,v 1.12 2003/06/14 00:55:40 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.crowd.data;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
|
import com.threerings.crowd.chat.data.SpeakObject;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The basic user object class for Crowd users. Bodies have a username, a
|
||||||
|
* location and a status.
|
||||||
|
*/
|
||||||
public class BodyObject extends ClientObject
|
public class BodyObject extends ClientObject
|
||||||
|
implements SpeakObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The username associated with this body object.
|
* The username associated with this body object.
|
||||||
@@ -29,6 +35,12 @@ public class BodyObject extends ClientObject
|
|||||||
*/
|
*/
|
||||||
public transient long statusTime;
|
public transient long statusTime;
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void applyToListeners (ListenerOp op)
|
||||||
|
{
|
||||||
|
op.apply(getOid());
|
||||||
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public String who ()
|
public String who ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,17 @@
|
|||||||
//
|
//
|
||||||
// $Id: BodyObject.java,v 1.6 2003/04/30 22:45:57 mdb Exp $
|
// $Id: BodyObject.java,v 1.7 2003/06/14 00:55:40 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.crowd.data;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
|
import com.threerings.crowd.chat.data.SpeakObject;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The basic user object class for Crowd users. Bodies have a username, a
|
||||||
|
* location and a status.
|
||||||
|
*/
|
||||||
public class BodyObject extends ClientObject
|
public class BodyObject extends ClientObject
|
||||||
|
implements SpeakObject
|
||||||
{
|
{
|
||||||
/** The field name of the <code>username</code> field. */
|
/** The field name of the <code>username</code> field. */
|
||||||
public static final String USERNAME = "username";
|
public static final String USERNAME = "username";
|
||||||
@@ -38,6 +44,12 @@ public class BodyObject extends ClientObject
|
|||||||
*/
|
*/
|
||||||
public transient long statusTime;
|
public transient long statusTime;
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void applyToListeners (ListenerOp op)
|
||||||
|
{
|
||||||
|
op.apply(getOid());
|
||||||
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public String who ()
|
public String who ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: PlaceObject.dobj,v 1.13 2003/06/06 23:58:53 ray Exp $
|
// $Id: PlaceObject.dobj,v 1.14 2003/06/14 00:55:40 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.crowd.data;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
@@ -10,8 +10,10 @@ import com.threerings.presents.dobj.DSet;
|
|||||||
import com.threerings.presents.dobj.OidList;
|
import com.threerings.presents.dobj.OidList;
|
||||||
|
|
||||||
import com.threerings.crowd.chat.data.SpeakMarshaller;
|
import com.threerings.crowd.chat.data.SpeakMarshaller;
|
||||||
|
import com.threerings.crowd.chat.data.SpeakObject;
|
||||||
|
|
||||||
public class PlaceObject extends DObject
|
public class PlaceObject extends DObject
|
||||||
|
implements SpeakObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Tracks the oid of the body objects of all of the occupants of this
|
* Tracks the oid of the body objects of all of the occupants of this
|
||||||
@@ -52,4 +54,12 @@ public class PlaceObject extends DObject
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void applyToListeners (ListenerOp op)
|
||||||
|
{
|
||||||
|
for (int ii = 0, ll = occupants.size(); ii < ll; ii++) {
|
||||||
|
op.apply(occupants.get(ii));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: PlaceObject.java,v 1.12 2003/06/03 21:41:33 ray Exp $
|
// $Id: PlaceObject.java,v 1.13 2003/06/14 00:55:40 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.crowd.data;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
@@ -10,8 +10,10 @@ import com.threerings.presents.dobj.DSet;
|
|||||||
import com.threerings.presents.dobj.OidList;
|
import com.threerings.presents.dobj.OidList;
|
||||||
|
|
||||||
import com.threerings.crowd.chat.data.SpeakMarshaller;
|
import com.threerings.crowd.chat.data.SpeakMarshaller;
|
||||||
|
import com.threerings.crowd.chat.data.SpeakObject;
|
||||||
|
|
||||||
public class PlaceObject extends DObject
|
public class PlaceObject extends DObject
|
||||||
|
implements SpeakObject
|
||||||
{
|
{
|
||||||
/** The field name of the <code>occupants</code> field. */
|
/** The field name of the <code>occupants</code> field. */
|
||||||
public static final String OCCUPANTS = "occupants";
|
public static final String OCCUPANTS = "occupants";
|
||||||
@@ -62,6 +64,14 @@ public class PlaceObject extends DObject
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void applyToListeners (ListenerOp op)
|
||||||
|
{
|
||||||
|
for (int ii = 0, ll = occupants.size(); ii < ll; ii++) {
|
||||||
|
op.apply(occupants.get(ii));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Requests that the specified oid be added to the
|
* Requests that the specified oid be added to the
|
||||||
* <code>occupants</code> oid list. The list will not change until the
|
* <code>occupants</code> oid list. The list will not change until the
|
||||||
|
|||||||
@@ -1,18 +1,29 @@
|
|||||||
//
|
//
|
||||||
// $Id: ClusterObject.dobj,v 1.2 2003/02/12 07:23:31 mdb Exp $
|
// $Id: ClusterObject.dobj,v 1.3 2003/06/14 00:55:40 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.whirled.spot.data;
|
package com.threerings.whirled.spot.data;
|
||||||
|
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
import com.threerings.presents.dobj.OidList;
|
import com.threerings.presents.dobj.OidList;
|
||||||
|
|
||||||
|
import com.threerings.crowd.chat.data.SpeakObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to dispatch chat in clusters.
|
* Used to dispatch chat in clusters.
|
||||||
*/
|
*/
|
||||||
public class ClusterObject extends DObject
|
public class ClusterObject extends DObject
|
||||||
|
implements SpeakObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Tracks the oid of the body objects that occupy this cluster.
|
* Tracks the oid of the body objects that occupy this cluster.
|
||||||
*/
|
*/
|
||||||
public OidList occupants = new OidList();
|
public OidList occupants = new OidList();
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void applyToListeners (ListenerOp op)
|
||||||
|
{
|
||||||
|
for (int ii = 0, ll = occupants.size(); ii < ll; ii++) {
|
||||||
|
op.apply(occupants.get(ii));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
//
|
//
|
||||||
// $Id: ClusterObject.java,v 1.2 2003/02/12 07:23:31 mdb Exp $
|
// $Id: ClusterObject.java,v 1.3 2003/06/14 00:55:40 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.whirled.spot.data;
|
package com.threerings.whirled.spot.data;
|
||||||
|
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
import com.threerings.presents.dobj.OidList;
|
import com.threerings.presents.dobj.OidList;
|
||||||
|
|
||||||
|
import com.threerings.crowd.chat.data.SpeakObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to dispatch chat in clusters.
|
* Used to dispatch chat in clusters.
|
||||||
*/
|
*/
|
||||||
public class ClusterObject extends DObject
|
public class ClusterObject extends DObject
|
||||||
|
implements SpeakObject
|
||||||
{
|
{
|
||||||
/** The field name of the <code>occupants</code> field. */
|
/** The field name of the <code>occupants</code> field. */
|
||||||
public static final String OCCUPANTS = "occupants";
|
public static final String OCCUPANTS = "occupants";
|
||||||
@@ -19,6 +22,14 @@ public class ClusterObject extends DObject
|
|||||||
*/
|
*/
|
||||||
public OidList occupants = new OidList();
|
public OidList occupants = new OidList();
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void applyToListeners (ListenerOp op)
|
||||||
|
{
|
||||||
|
for (int ii = 0, ll = occupants.size(); ii < ll; ii++) {
|
||||||
|
op.apply(occupants.get(ii));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Requests that the specified oid be added to the
|
* Requests that the specified oid be added to the
|
||||||
* <code>occupants</code> oid list. The list will not change until the
|
* <code>occupants</code> oid list. The list will not change until the
|
||||||
|
|||||||
Reference in New Issue
Block a user