|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lazywizard.lazylib.CollectionUtils.SortObjectivesByDistance
public static class CollectionUtils.SortObjectivesByDistance
A Comparator
that sorts BattleObjectiveAPI
s by distance from a Vector2f
.
Constructor Summary | |
---|---|
CollectionUtils.SortObjectivesByDistance(org.lwjgl.util.vector.Vector2f location)
|
Method Summary | |
---|---|
int |
compare(com.fs.starfarer.api.combat.BattleObjectiveAPI o1,
com.fs.starfarer.api.combat.BattleObjectiveAPI o2)
Compares the distances of two BattleObjectiveAPI s from a central location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public CollectionUtils.SortObjectivesByDistance(org.lwjgl.util.vector.Vector2f location)
location
- The central location to judge distance from.Method Detail |
---|
public int compare(com.fs.starfarer.api.combat.BattleObjectiveAPI o1, com.fs.starfarer.api.combat.BattleObjectiveAPI o2)
BattleObjectiveAPI
s from a central location.
compare
in interface java.util.Comparator<com.fs.starfarer.api.combat.BattleObjectiveAPI>
o1
- The first BattleObjectiveAPI
.o2
- The second BattleObjectiveAPI
.
o1
and o2
from location
.
|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |