public class SpeedComparator extends java.lang.Object implements java.util.Comparator<PixelmonWrapper>
Constructor and Description |
---|
SpeedComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(PixelmonWrapper pw1,
PixelmonWrapper pw2) |
protected boolean |
doesGoFirst(PixelmonWrapper p,
PixelmonWrapper foe)
Calculates whether one Pokémon moves before another.
|
public int compare(PixelmonWrapper pw1, PixelmonWrapper pw2)
compare
in interface java.util.Comparator<PixelmonWrapper>
protected boolean doesGoFirst(PixelmonWrapper p, PixelmonWrapper foe)
p
- The Pokémon to check for moving first.foe
- The Pokémon opposing p.