Class ZComparator

java.lang.Object
com.devcharles.piazzapanic.utility.ZComparator
All Implemented Interfaces:
Comparator<com.badlogic.ashley.core.Entity>

public class ZComparator extends Object implements 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 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 interface Comparator<com.badlogic.ashley.core.Entity>