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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(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, waitMethods 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:
comparein interfaceComparator<com.badlogic.ashley.core.Entity>
-