Class EntityDistanceComparator
java.lang.Object
de.gurkenlabs.litiengine.entities.RelativeEntityComparator
de.gurkenlabs.litiengine.entities.EntityDistanceComparator
- All Implemented Interfaces:
java.util.Comparator<IEntity>
public class EntityDistanceComparator
extends RelativeEntityComparator
Constructor Summary
Constructors Constructor Description EntityDistanceComparator(IEntity relativeEntity)
Initializes a new instance of theEntityDistanceComparator
class.Method Summary
Methods inherited from class de.gurkenlabs.litiengine.entities.RelativeEntityComparator
getRelativeEntity, setRelativeEntity
Constructor Details
EntityDistanceComparator
Initializes a new instance of theEntityDistanceComparator
class.- Parameters:
relativeEntity
- The entity that is used as reference for distance comparison.
Method Details