ArrayUtil --> Arrays.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@1096 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Bruno Garcia
2011-06-17 22:17:04 +00:00
parent 563ba5ed8b
commit 9419a58b87
6 changed files with 13 additions and 13 deletions
@@ -21,7 +21,7 @@
package com.threerings.parlor.card.data {
import com.threerings.util.ArrayUtil;
import com.threerings.util.Arrays;
import com.threerings.util.StreamableArrayList;
/**
@@ -101,7 +101,7 @@ public class Deck extends StreamableArrayList
*/
public function shuffle () :void
{
ArrayUtil.shuffle(_array);
Arrays.shuffle(_array);
}
}
}
@@ -21,7 +21,7 @@
package com.threerings.parlor.client {
import com.threerings.util.ArrayUtil;
import com.threerings.util.Arrays;
import com.threerings.util.Map;
import com.threerings.util.Maps;
import com.threerings.util.Log;
@@ -93,7 +93,7 @@ public class ParlorDirector extends BasicDirector
*/
public function removeGameReadyObserver (observer :GameReadyObserver) :void
{
ArrayUtil.removeFirst(_grobs, observer);
Arrays.removeFirst(_grobs, observer);
}
/**
@@ -21,7 +21,7 @@
package com.threerings.parlor.client {
import com.threerings.util.ArrayUtil;
import com.threerings.util.Arrays;
import com.threerings.util.Log;
import com.threerings.util.Name;
import com.threerings.util.ObserverList;
@@ -376,7 +376,7 @@ public class TableDirector extends BasicDirector
// look for our username in the players array
var self :BodyObject = (_pctx.getClient().getClientObject() as BodyObject);
if (ArrayUtil.contains(table.players, self.getVisibleName())) {
if (Arrays.contains(table.players, self.getVisibleName())) {
_ourTable = table;
}
@@ -21,7 +21,7 @@
package com.threerings.parlor.data {
import com.threerings.util.ArrayUtil;
import com.threerings.util.Arrays;
import com.threerings.util.ClassUtil;
import com.threerings.util.Hashable;
import com.threerings.util.Joiner;
@@ -133,7 +133,7 @@ public class Table
for (var jj :int = 0; jj < subTeams.length; jj++) {
var occ :Name = (players[(subTeams[jj] as int)] as Name);
if (occ != null) {
newSubTeams.push(ArrayUtil.indexOf(players, occ));
newSubTeams.push(Arrays.indexOf(players, occ));
}
}
newSubTeams.sort(null, Array.NUMERIC);
@@ -21,7 +21,7 @@
package com.threerings.parlor.game.data {
import com.threerings.util.ArrayUtil;
import com.threerings.util.Arrays;
import com.threerings.util.Integer;
import com.threerings.util.Joiner;
import com.threerings.util.langBoolean;
@@ -157,7 +157,7 @@ public class GameObject extends PlaceObject
*/
public function getPlayerIndex (username :Name) :int
{
return ArrayUtil.indexOf(players, username);
return Arrays.indexOf(players, username);
}
/**
@@ -218,7 +218,7 @@ public class GameObject extends PlaceObject
*/
public function getWinnerIndex () :int
{
return ArrayUtil.indexOf(winners, true);
return Arrays.indexOf(winners, true);
}
/**
@@ -21,7 +21,7 @@
package com.threerings.whirled.spot.data {
import com.threerings.util.ArrayUtil;
import com.threerings.util.Arrays;
import com.threerings.util.ClassUtil;
import com.threerings.io.ObjectInputStream;
@@ -75,7 +75,7 @@ public class SpotSceneModel extends SimpleStreamableObject
*/
public function removePortal (portal :Portal) :void
{
ArrayUtil.removeFirst(portals, portal);
Arrays.removeFirst(portals, portal);
}
/**