LazyLib

org.lazywizard.lazylib
Class CollectionUtils.SortObjectivesByDistance

Object
  extended by CollectionUtils.SortObjectivesByDistance
All Implemented Interfaces:
Comparator<BattleObjectiveAPI>
Enclosing class:
CollectionUtils

Deprecated. Use CollectionUtils.SortEntitiesByDistance instead.

@Deprecated
public static class CollectionUtils.SortObjectivesByDistance
extends Object
implements Comparator<BattleObjectiveAPI>

Since:
1.1

Constructor Summary
CollectionUtils.SortObjectivesByDistance(Vector2f location)
          Deprecated.  
 
Method Summary
 int compare(BattleObjectiveAPI o1, BattleObjectiveAPI o2)
          Deprecated. Compares the distances of two BattleObjectiveAPIs from a central location.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Comparator
equals
 

Constructor Detail

CollectionUtils.SortObjectivesByDistance

public CollectionUtils.SortObjectivesByDistance(Vector2f location)
Deprecated. 
Parameters:
location - The central location to judge distance from.

Since:
1.1
Method Detail

compare

public int compare(BattleObjectiveAPI o1,
                   BattleObjectiveAPI o2)
Deprecated. 
Compares the distances of two BattleObjectiveAPIs from a central location.

Specified by:
compare in interface Comparator<BattleObjectiveAPI>
Parameters:
o1 - The first BattleObjectiveAPI.
o2 - The second BattleObjectiveAPI.

Returns:
A comparison of the distances of o1 and o2 from location.

Since:
1.1

LazyLib