Class ZComparator
java.lang.Object
com.devcharles.piazzapanic.utility.ZComparator
- All Implemented Interfaces:
Comparator<com.badlogic.ashley.core.Entity>
Compares the entities by their Z coordinate. The z coordinate is only used
manually changing render order, see https://en.wikipedia.org/wiki/Z-order.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(com.badlogic.ashley.core.Entity entityA, com.badlogic.ashley.core.Entity entityB) 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ZComparator
public ZComparator()
-
-
Method Details
-
compare
public int compare(com.badlogic.ashley.core.Entity entityA, com.badlogic.ashley.core.Entity entityB) - Specified by:
compare
in interfaceComparator<com.badlogic.ashley.core.Entity>
-