diff --git a/src/java/com/threerings/crowd/data/BodyObject.dobj b/src/java/com/threerings/crowd/data/BodyObject.dobj index ee0f948c2..f46f96e7b 100644 --- a/src/java/com/threerings/crowd/data/BodyObject.dobj +++ b/src/java/com/threerings/crowd/data/BodyObject.dobj @@ -1,5 +1,5 @@ // -// $Id: BodyObject.dobj,v 1.8 2002/02/08 23:10:36 mdb Exp $ +// $Id: BodyObject.dobj,v 1.9 2002/06/20 22:37:32 mdb Exp $ package com.threerings.crowd.data; @@ -17,4 +17,12 @@ public class BodyObject extends ClientObject * currently occupy no place. */ public int location = -1; + + /** + * Returns a short string identifying this body. + */ + public String who () + { + return username + " (" + getOid() + ")"; + } } diff --git a/src/java/com/threerings/crowd/data/BodyObject.java b/src/java/com/threerings/crowd/data/BodyObject.java index e8ed3680b..69834b878 100644 --- a/src/java/com/threerings/crowd/data/BodyObject.java +++ b/src/java/com/threerings/crowd/data/BodyObject.java @@ -1,5 +1,5 @@ // -// $Id: BodyObject.java,v 1.2 2002/02/20 23:35:42 mdb Exp $ +// $Id: BodyObject.java,v 1.3 2002/06/20 22:37:32 mdb Exp $ package com.threerings.crowd.data; @@ -24,6 +24,14 @@ public class BodyObject extends ClientObject */ public int location = -1; + /** + * Returns a short string identifying this body. + */ + public String who () + { + return username + " (" + getOid() + ")"; + } + /** * Requests that the username field be set to the specified * value. The local value will be updated immediately and an event