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:
@@ -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;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
@@ -17,4 +17,12 @@ public class BodyObject extends ClientObject
|
|||||||
* currently occupy no place.
|
* currently occupy no place.
|
||||||
*/
|
*/
|
||||||
public int location = -1;
|
public int location = -1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a short string identifying this body.
|
||||||
|
*/
|
||||||
|
public String who ()
|
||||||
|
{
|
||||||
|
return username + " (" + getOid() + ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
@@ -24,6 +24,14 @@ public class BodyObject extends ClientObject
|
|||||||
*/
|
*/
|
||||||
public int location = -1;
|
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
|
* Requests that the <code>username</code> field be set to the specified
|
||||||
* value. The local value will be updated immediately and an event
|
* value. The local value will be updated immediately and an event
|
||||||
|
|||||||
Reference in New Issue
Block a user