Class EntityYComparator
java.lang.Object
de.gurkenlabs.litiengine.entities.EntityYComparator
- All Implemented Interfaces:
java.util.Comparator<IEntity>
public class EntityYComparator
extends java.lang.Object
implements java.util.Comparator<IEntity>
This
Comparator
implementation sorts entities by the max y-coordinate of their collision box (if its a ICollisionEntity
)
or of their bounding box.- See Also:
ICollisionEntity.getCollisionBox()
,IEntity.getBoundingBox()
,Double.compareTo(Double)
Constructor Summary
Constructors Constructor Description EntityYComparator()
Method Summary
Constructor Details
EntityYComparator
public EntityYComparator()
Method Details