//
// $Id: Cluster.java,v 1.1 2003/02/13 21:55:22 mdb Exp $

package com.threerings.whirled.spot.data;

import com.threerings.presents.dobj.DSet;

/**
 * Contains information on clusters.
 */
public class Cluster
    implements DSet.Entry
{
    /** A unique identifier for this cluster (also the distributed object
     * id of the cluster chat object). */
    public int clusterOid;

    /** The x-coordinate of the cluster in the scene. */
    public int x;

    /** The y-coordinate of the cluster in the scene. */
    public int y;

    /** The number of occupants in this cluster. */
    public int occupants;

    // documentation inherited
    public Comparable getKey ()
    {
        if (_key == null) {
            _key = new Integer(clusterOid);
        }
        return _key;
    }

    /** Used for {@link #geyKey}. */
    protected transient Integer _key;
}

@@ -21,17 +21,17 @@
 ava,v 1.
-1
+2
  2003/02
@@ -39,15 +39,15 @@
 13 2
-1:55:22
+3:01:35
  mdb
@@ -788,16 +788,354 @@
 %0A    %7D%0A%0A
+    // documentation inherited%0A    public boolean equals (Object other)%0A    %7B%0A        if (other instanceof Cluster) %7B%0A            return ((Cluster)other).clusterOid == clusterOid;%0A        %7D else %7B%0A            return false;%0A        %7D%0A    %7D%0A%0A    // documentation inherited%0A    public int hashCode ()%0A    %7B%0A        return clusterOid;%0A    %7D%0A%0A
     /** 

Let's be a good key.