Package name.moore.kevin.ze.game.verbs
Class fire.damageComparator
java.lang.Object
name.moore.kevin.ze.game.verbs.fire.damageComparator
- All Implemented Interfaces:
Comparator<com.simsilica.es.EntityId>
- Enclosing class:
- fire
This comparator ensures the most fragile parts are damaged before other
more robust parts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(com.simsilica.es.EntityId a, com.simsilica.es.EntityId b)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
-
damageComparator
damageComparator()
-
-
Method Details
-
compare
public int compare(com.simsilica.es.EntityId a, com.simsilica.es.EntityId b)- Specified by:
comparein interfaceComparator<com.simsilica.es.EntityId>
-