made Cloneable
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2299 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ObjectInfo.java,v 1.2 2003/02/04 03:33:09 mdb Exp $
|
||||
// $Id: ObjectInfo.java,v 1.3 2003/03/05 21:17:27 ray Exp $
|
||||
|
||||
package com.threerings.miso.data;
|
||||
|
||||
@@ -10,6 +10,7 @@ import com.threerings.io.SimpleStreamableObject;
|
||||
* Contains information about an object in a Miso scene.
|
||||
*/
|
||||
public class ObjectInfo extends SimpleStreamableObject
|
||||
implements Cloneable
|
||||
{
|
||||
/** The fully qualified object tile id. */
|
||||
public int tileId;
|
||||
@@ -126,4 +127,15 @@ public class ObjectInfo extends SimpleStreamableObject
|
||||
{
|
||||
return x ^ y ^ tileId;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public Object clone ()
|
||||
{
|
||||
try {
|
||||
return super.clone();
|
||||
} catch (CloneNotSupportedException cnse) {
|
||||
// notgunnahappen.
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user