public class BattlePriorityHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static SpeedComparator |
SPEED_COMPARATOR |
static SpeedPriorityComparator |
SPEED_PRIORITY_COMPARATOR |
| Constructor and Description |
|---|
BattlePriorityHelper() |
| Modifier and Type | Method and Description |
|---|---|
static float |
calculatePriority(PixelmonWrapper p)
Calculates the priority a Pokémon has for the turn.
|
static void |
checkMoveSpeed(BattleController bc)
Calculates turn order.
|
static java.util.List<PixelmonWrapper> |
getTurnOrder(java.util.List<PixelmonWrapper> pokemon)
Gets the turn order of Pokémon without accounting for priority.
|
static void |
recalculateMoveSpeed(BattleController bc,
int turn)
Recalculates turn order for Pokémon that have not yet moved in the turn.
|
public static final SpeedPriorityComparator SPEED_PRIORITY_COMPARATOR
public static final SpeedComparator SPEED_COMPARATOR
public static void checkMoveSpeed(BattleController bc)
bc - The battle to calculate turn order in.public static void recalculateMoveSpeed(BattleController bc, int turn)
bc - The battle to calculate turn order in.turn - The current turn in the battle turn.public static java.util.List<PixelmonWrapper> getTurnOrder(java.util.List<PixelmonWrapper> pokemon)
pokemon - The Pokémon to get turn order for.public static float calculatePriority(PixelmonWrapper p)
p - The Pokémon to calculate priority for.