From f3db47e22b2cc7d97fb757f999f4626a49316294 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 6 Feb 2003 18:58:30 +0000 Subject: [PATCH] Switch from IntListUtil to ArrayUtil. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2245 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../spot/server/RuntimeSpotSceneImpl.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/java/com/threerings/whirled/spot/server/RuntimeSpotSceneImpl.java b/src/java/com/threerings/whirled/spot/server/RuntimeSpotSceneImpl.java index c6856af9d..d18940624 100644 --- a/src/java/com/threerings/whirled/spot/server/RuntimeSpotSceneImpl.java +++ b/src/java/com/threerings/whirled/spot/server/RuntimeSpotSceneImpl.java @@ -1,8 +1,9 @@ // -// $Id: RuntimeSpotSceneImpl.java,v 1.6 2003/02/04 03:12:07 mdb Exp $ +// $Id: RuntimeSpotSceneImpl.java,v 1.7 2003/02/06 18:58:30 mdb Exp $ package com.threerings.whirled.spot.server; +import com.samskivert.util.ArrayUtil; import com.samskivert.util.IntListUtil; import com.threerings.crowd.data.PlaceConfig; @@ -100,13 +101,13 @@ public class RuntimeSpotSceneImpl extends RuntimeSceneImpl IntListUtil.getMaxValue(_model.locationIds), 0) + 1; // expand the necessary arrays - _model.locationIds = IntListUtil.append(_model.locationIds, nlocid); - _model.locationX = IntListUtil.append(_model.locationX, locX); - _model.locationY = IntListUtil.append(_model.locationY, locY); + _model.locationIds = ArrayUtil.append(_model.locationIds, nlocid); + _model.locationX = ArrayUtil.append(_model.locationX, locX); + _model.locationY = ArrayUtil.append(_model.locationY, locY); _model.locationOrients = - IntListUtil.append(_model.locationOrients, orient); + ArrayUtil.append(_model.locationOrients, orient); _model.locationClusters = - IntListUtil.append(_model.locationOrients, cluster); + ArrayUtil.append(_model.locationOrients, cluster); return nlocid; } @@ -120,10 +121,10 @@ public class RuntimeSpotSceneImpl extends RuntimeSceneImpl // expand the necessary portal arrays _model.neighborIds = - IntListUtil.append(_model.neighborIds, targetSceneId); - _model.portalIds = IntListUtil.append(_model.portalIds, nlocid); + ArrayUtil.append(_model.neighborIds, targetSceneId); + _model.portalIds = ArrayUtil.append(_model.portalIds, nlocid); _model.targetLocIds = - IntListUtil.append(_model.targetLocIds, targetLocId); + ArrayUtil.append(_model.targetLocIds, targetLocId); return nlocid; }