diff --git a/src/java/com/threerings/whirled/spot/data/SpotOccupantInfo.java b/src/java/com/threerings/whirled/spot/data/SpotOccupantInfo.java index 43334bc6d..880dce39b 100644 --- a/src/java/com/threerings/whirled/spot/data/SpotOccupantInfo.java +++ b/src/java/com/threerings/whirled/spot/data/SpotOccupantInfo.java @@ -1,8 +1,10 @@ // -// $Id: SpotOccupantInfo.java,v 1.2 2002/04/17 22:19:40 mdb Exp $ +// $Id: SpotOccupantInfo.java,v 1.3 2002/06/20 22:13:20 mdb Exp $ package com.threerings.whirled.spot.data; +import com.samskivert.util.StringUtil.Formatter; + import com.threerings.crowd.data.OccupantInfo; /** @@ -14,4 +16,13 @@ public class SpotOccupantInfo extends OccupantInfo /** The id of the location occupied by this user or -1 if they occupy * no location. */ public int locationId; + + /** Used to log just the user oids and location ids of users in the + * occupantInfo set when debugging. */ + public static final Formatter OIDS_AND_LOCS = new Formatter() { + public String toString (Object object) { + SpotOccupantInfo soi = (SpotOccupantInfo)object; + return "[" + soi.getBodyOid() + ", " + soi.locationId + "]"; + } + }; }