Added ZoneUtil.toString(qualifiedZoneId).

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2191 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-01-18 22:45:16 +00:00
parent bce70d5b43
commit 01bd0d33e8
2 changed files with 13 additions and 5 deletions
@@ -1,5 +1,5 @@
//
// $Id: ZoneDirector.java,v 1.12 2003/01/18 20:12:49 mdb Exp $
// $Id: ZoneDirector.java,v 1.13 2003/01/18 22:45:16 mdb Exp $
package com.threerings.whirled.zone.client;
@@ -119,9 +119,8 @@ public class ZoneDirector extends BasicDirector
}
// issue a moveTo request
Log.info("Issuing zoned moveTo(" + ZoneUtil.zoneType(zoneId) + ":" +
ZoneUtil.zoneId(zoneId) + ", " + sceneId + ", " +
sceneVers + ").");
Log.info("Issuing zoned moveTo(" + ZoneUtil.toString(zoneId) +
", " + sceneId + ", " + sceneVers + ").");
_zservice.moveTo(_ctx.getClient(), zoneId, sceneId, sceneVers, this);
return true;
}
@@ -1,5 +1,5 @@
//
// $Id: ZoneUtil.java,v 1.2 2002/01/29 02:05:49 mdb Exp $
// $Id: ZoneUtil.java,v 1.3 2003/01/18 22:45:16 mdb Exp $
package com.threerings.whirled.zone.util;
@@ -36,4 +36,13 @@ public class ZoneUtil
{
return (0x00FFFFFF & qualifiedZoneId);
}
/**
* Returns an easier to read representation of the supplied qualified
* zone id: <code>type:id</code>.
*/
public static String toString (int qualifiedZoneId)
{
return zoneType(qualifiedZoneId) + ":" + zoneId(qualifiedZoneId);
}
}