30 if (fleet.getContainingLocation() != anchor.getContainingLocation()) {
37 Vector2f dest =
new Vector2f(anchor.getLocation().x + offset.x, anchor.getLocation().y + offset.y);
38 float distToDest = Misc.getDistance(dest, fleet.getLocation());
39 fleet.setMoveDestination(dest.x, dest.y);
41 fleet.setLocation(dest.x, dest.y);
44 float dist = Misc.getDistance(anchor.getLocation(), fleet.getLocation());
45 if (dist > range + anchor.getRadius() + fleet.getRadius()) {