CollectionUtils.SortEntitiesByDistance
instead.@Deprecated
public static class CollectionUtils.SortObjectivesByDistance
extends Object
implements Comparator<BattleObjectiveAPI>
Constructor and Description |
---|
CollectionUtils.SortObjectivesByDistance(Vector2f location)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(BattleObjectiveAPI o1,
BattleObjectiveAPI o2)
Deprecated.
Compares the distances of two
BattleObjectiveAPI s from a
central location. |
public CollectionUtils.SortObjectivesByDistance(Vector2f location)
location
- The central location to judge distance from.
public int compare(BattleObjectiveAPI o1, BattleObjectiveAPI o2)
BattleObjectiveAPI
s from a
central location.compare
in interface Comparator<BattleObjectiveAPI>
o1
- The first BattleObjectiveAPI
.o2
- The second BattleObjectiveAPI
.
o1
and o2
from location
.