Revamped toString() to be more derived class friendly. Added a

ReleaseLockEvent which will be used by the distributed object locking
facilities.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@169 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-08-04 00:32:11 +00:00
parent 31d1aa1edb
commit a831089362
7 changed files with 152 additions and 18 deletions
@@ -1,5 +1,5 @@
//
// $Id: ObjectAddedEvent.java,v 1.3 2001/08/02 04:49:08 mdb Exp $
// $Id: ObjectAddedEvent.java,v 1.4 2001/08/04 00:32:11 mdb Exp $
package com.threerings.cocktail.cher.dobj;
@@ -94,10 +94,12 @@ public class ObjectAddedEvent extends TypedEvent
_oid = in.readInt();
}
public String toString ()
protected void toString (StringBuffer buf)
{
return "[OBJADD:targetOid=" + _toid + ", name=" + _name +
", oid=" + _oid + "]";
buf.append("OBJADD:");
super.toString(buf);
buf.append(", name=").append(_name);
buf.append(", oid=").append(_oid);
}
protected String _name;