|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectshoddybattle.BattleField.PokemonWrapper
protected static class BattleField.PokemonWrapper
A wrapper for a pokemon and a turn. Can be compared on the basis of move priority, or, failing that, speed.
| Method Summary | |
|---|---|
static int |
compareSpeed(Pokemon p1,
Pokemon p2)
Compare based on speed. |
int |
compareTo(java.lang.Object obj)
Compare this object to another PokemonWrapper. |
static int[] |
sortMoves(Pokemon[] active,
BattleTurn[] move)
Sort pokemon and moves in descending order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int compareSpeed(Pokemon p1,
Pokemon p2)
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparable
public static int[] sortMoves(Pokemon[] active,
BattleTurn[] move)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||