More import cleanups to go with r662, along with a little bit of foreaching, widening, etc.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@664 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2008-09-26 17:29:23 +00:00
parent b481c48791
commit b473318b12
48 changed files with 235 additions and 231 deletions
@@ -21,6 +21,11 @@
package com.threerings.media.util;
import java.util.ArrayList;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
import java.awt.Point;
import java.util.ArrayList;
@@ -136,7 +141,7 @@ public class AStarPathUtil
* @return the list of points in the path.
*/
public static List<Point> getPath (
TraversalPred tpred, Stepper stepper, Object trav, int longest,
TraversalPred tpred, Stepper stepper, Object trav, int longest,
int ax, int ay, int bx, int by, boolean partial)
{
Info info = new Info(tpred, trav, longest, bx, by);
@@ -166,7 +171,7 @@ public class AStarPathUtil
if (n.x == bx && n.y == by) {
// construct and return the acceptable path
return getNodePath(n);
} else if (partial) {
float pathdist = MathUtil.distance(n.x, n.y, bx, by);
if (pathdist < bestdist) {
@@ -21,12 +21,12 @@
package com.threerings.media.util;
import java.awt.DisplayMode;
import java.awt.GraphicsDevice;
import java.util.Comparator;
import java.util.TreeSet;
import java.awt.DisplayMode;
import java.awt.GraphicsDevice;
/**
* Display mode related utilities.
*/
@@ -21,11 +21,11 @@
package com.threerings.media.util;
import java.awt.Graphics2D;
import java.util.ArrayList;
import java.util.List;
import java.awt.Graphics2D;
import static com.threerings.media.Log.log;
/**