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 { package com.threerings.parlor.card.data {
import com.threerings.util.ArrayUtil; import com.threerings.util.Arrays;
import com.threerings.util.StreamableArrayList; import com.threerings.util.StreamableArrayList;
/** /**
@@ -101,7 +101,7 @@ public class Deck extends StreamableArrayList
*/ */
public function shuffle () :void public function shuffle () :void
{ {
ArrayUtil.shuffle(_array); Arrays.shuffle(_array);
} }
} }
} }
@@ -21,7 +21,7 @@
package com.threerings.parlor.client { package com.threerings.parlor.client {
import com.threerings.util.ArrayUtil; import com.threerings.util.Arrays;
import com.threerings.util.Map; import com.threerings.util.Map;
import com.threerings.util.Maps; import com.threerings.util.Maps;
import com.threerings.util.Log; import com.threerings.util.Log;
@@ -93,7 +93,7 @@ public class ParlorDirector extends BasicDirector
*/ */
public function removeGameReadyObserver (observer :GameReadyObserver) :void public function removeGameReadyObserver (observer :GameReadyObserver) :void
{ {
ArrayUtil.removeFirst(_grobs, observer); Arrays.removeFirst(_grobs, observer);
} }
/** /**
@@ -21,7 +21,7 @@
package com.threerings.parlor.client { package com.threerings.parlor.client {
import com.threerings.util.ArrayUtil; import com.threerings.util.Arrays;
import com.threerings.util.Log; import com.threerings.util.Log;
import com.threerings.util.Name; import com.threerings.util.Name;
import com.threerings.util.ObserverList; import com.threerings.util.ObserverList;
@@ -376,7 +376,7 @@ public class TableDirector extends BasicDirector
// look for our username in the players array // look for our username in the players array
var self :BodyObject = (_pctx.getClient().getClientObject() as BodyObject); var self :BodyObject = (_pctx.getClient().getClientObject() as BodyObject);
if (ArrayUtil.contains(table.players, self.getVisibleName())) { if (Arrays.contains(table.players, self.getVisibleName())) {
_ourTable = table; _ourTable = table;
} }
@@ -21,7 +21,7 @@
package com.threerings.parlor.data { package com.threerings.parlor.data {
import com.threerings.util.ArrayUtil; import com.threerings.util.Arrays;
import com.threerings.util.ClassUtil; import com.threerings.util.ClassUtil;
import com.threerings.util.Hashable; import com.threerings.util.Hashable;
import com.threerings.util.Joiner; import com.threerings.util.Joiner;
@@ -133,7 +133,7 @@ public class Table
for (var jj :int = 0; jj < subTeams.length; jj++) { for (var jj :int = 0; jj < subTeams.length; jj++) {
var occ :Name = (players[(subTeams[jj] as int)] as Name); var occ :Name = (players[(subTeams[jj] as int)] as Name);
if (occ != null) { if (occ != null) {
newSubTeams.push(ArrayUtil.indexOf(players, occ)); newSubTeams.push(Arrays.indexOf(players, occ));
} }
} }
newSubTeams.sort(null, Array.NUMERIC); newSubTeams.sort(null, Array.NUMERIC);
@@ -21,7 +21,7 @@
package com.threerings.parlor.game.data { 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.Integer;
import com.threerings.util.Joiner; import com.threerings.util.Joiner;
import com.threerings.util.langBoolean; import com.threerings.util.langBoolean;
@@ -157,7 +157,7 @@ public class GameObject extends PlaceObject
*/ */
public function getPlayerIndex (username :Name) :int 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 public function getWinnerIndex () :int
{ {
return ArrayUtil.indexOf(winners, true); return Arrays.indexOf(winners, true);
} }
/** /**
@@ -21,7 +21,7 @@
package com.threerings.whirled.spot.data { package com.threerings.whirled.spot.data {
import com.threerings.util.ArrayUtil; import com.threerings.util.Arrays;
import com.threerings.util.ClassUtil; import com.threerings.util.ClassUtil;
import com.threerings.io.ObjectInputStream; import com.threerings.io.ObjectInputStream;
@@ -75,7 +75,7 @@ public class SpotSceneModel extends SimpleStreamableObject
*/ */
public function removePortal (portal :Portal) :void public function removePortal (portal :Portal) :void
{ {
ArrayUtil.removeFirst(portals, portal); Arrays.removeFirst(portals, portal);
} }
/** /**