Convenience method for reporting username and object oid easily.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1519 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-06-20 22:37:32 +00:00
parent 9f61770db1
commit 01d2318133
2 changed files with 18 additions and 2 deletions
@@ -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 <code>username</code> field be set to the specified
* value. The local value will be updated immediately and an event