public class Moves
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Moves.Builder
Builder class to create the
Moves class |
Modifier and Type | Method and Description |
---|---|
static Moves.Builder |
builder()
Gets a new instance of the
Moves builder |
boolean |
canLearn(ImmutableAttack immutableAttack) |
boolean |
canLearn(ITechnicalMove move) |
boolean |
canLearn(Stats stats,
ImmutableAttack attack,
BaseStatsLearnType... types) |
boolean |
canLearnTMTRHM(ImmutableAttack attackName) |
boolean |
canLearnViaOtherSet(ITechnicalMove move) |
java.util.Set<ImmutableAttack> |
getAllLevelUpMoves()
Gets the
Set of all moves the Pokémon can learn by levelling up |
java.util.List<ImmutableAttack> |
getAllMoves()
Gets all moves that the Pokémon can learn.
|
java.util.Set<ImmutableAttack> |
getAllTMTRHMMoves() |
java.util.Set<ImmutableAttack> |
getEggMoves()
Gets the
Set of moves learnt when an egg |
java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,ImmutableAttack>> |
getFormatLevelMoves() |
java.util.Set<ITechnicalMove> |
getGenerationMoves(int generation)
Gets all the moves in the move set for that generation
|
java.util.Set<ImmutableAttack> |
getHMMoves()
Gets the
Set of ImmutableAttack potential HM moves |
java.util.List<ImmutableAttack> |
getMovesAtLevel(int level)
Gets specific moves at a given pokemonLevel
|
java.util.List<ImmutableAttack> |
getMovesUpToLevel(int level)
Level up moves.
|
java.util.Map<java.lang.Integer,java.util.Set<ImmutableAttack>> |
getPokemonLevelUpMoves()
Gets the
Map of moves the Pokémon can learn at each pokemonLevel |
java.util.Set<ImmutableAttack> |
getTMMoves()
Gets the
Set of all TM moves learnable for this form |
java.util.Set<Gen1TechnicalMachines> |
getTMMoves1()
Gets the
Set of Gen1TechnicalMachines moves this form can learn |
java.util.Set<Gen2TechnicalMachines> |
getTMMoves2()
Gets the
Set of Gen2TechnicalMachines moves this form can learn |
java.util.Set<Gen3TechnicalMachines> |
getTMMoves3()
Gets the
Set of Gen3TechnicalMachines moves this form can learn |
java.util.Set<Gen4TechnicalMachines> |
getTMMoves4()
Gets the
Set of Gen4TechnicalMachines moves this form can learn |
java.util.Set<Gen5TechnicalMachines> |
getTMMoves5()
Gets the
Set of Gen5TechnicalMachines moves this form can learn |
java.util.Set<Gen6TechnicalMachines> |
getTMMoves6()
Gets the
Set of Gen6TechnicalMachines moves this form can learn |
java.util.Set<Gen7TechnicalMachines> |
getTMMoves7()
Gets the
Set of Gen7TechnicalMachines moves this form can learn |
java.util.Set<Gen8TechnicalMachines> |
getTMMoves8()
Gets the
Set of Gen8TechnicalMachines moves this form can learn |
java.util.Set<Gen9TechnicalMachines> |
getTMMoves9()
Gets the
Set of Gen9TechnicalMachines moves this form can learn |
java.util.List<ITechnicalMove> |
getTMMovesFor(int gen) |
java.util.Set<ImmutableAttack> |
getTransferMoves()
Gets a
Set of all moves learnt by transfer |
java.util.Set<Gen8TechnicalRecords> |
getTRMoves()
Gets the
Set of Gen8TechnicalRecords moves this form can learn |
java.util.Set<ImmutableAttack> |
getTutorMoves()
Gets the
Set of all moves learnt by tutor |
void |
initLevelUpMoves() |
boolean |
isMoveInSet(java.util.Set<? extends ITechnicalMove> tms,
java.lang.String attack) |
Moveset |
loadMoveset(int level)
Creates a randomly generated move set for the given pokemonLevel
|
Moveset |
loadMoveset(int level,
Ability ability)
Creates a randomly generated move set for the given pokemonLevel
|
public void initLevelUpMoves()
public java.util.Map<java.lang.Integer,java.util.Set<ImmutableAttack>> getPokemonLevelUpMoves()
Map
of moves the Pokémon can learn at each pokemonLevelpublic java.util.Set<ImmutableAttack> getAllLevelUpMoves()
Set
of all moves the Pokémon can learn by levelling uppublic java.util.Set<ImmutableAttack> getTMMoves()
Set
of all TM moves learnable for this formpublic java.util.Set<ImmutableAttack> getTutorMoves()
Set
of all moves learnt by tutorpublic java.util.Set<ImmutableAttack> getEggMoves()
Set
of moves learnt when an eggpublic java.util.Set<ImmutableAttack> getTransferMoves()
Set
of all moves learnt by transferpublic java.util.Set<ImmutableAttack> getHMMoves()
Set
of ImmutableAttack
potential HM movespublic java.util.Set<Gen9TechnicalMachines> getTMMoves9()
Set
of Gen9TechnicalMachines
moves this form can learnpublic java.util.Set<Gen8TechnicalRecords> getTRMoves()
Set
of Gen8TechnicalRecords
moves this form can learnpublic java.util.Set<Gen8TechnicalMachines> getTMMoves8()
Set
of Gen8TechnicalMachines
moves this form can learnpublic java.util.Set<Gen7TechnicalMachines> getTMMoves7()
Set
of Gen7TechnicalMachines
moves this form can learnpublic java.util.Set<Gen6TechnicalMachines> getTMMoves6()
Set
of Gen6TechnicalMachines
moves this form can learnpublic java.util.Set<Gen5TechnicalMachines> getTMMoves5()
Set
of Gen5TechnicalMachines
moves this form can learnpublic java.util.Set<Gen4TechnicalMachines> getTMMoves4()
Set
of Gen4TechnicalMachines
moves this form can learnpublic java.util.Set<Gen3TechnicalMachines> getTMMoves3()
Set
of Gen3TechnicalMachines
moves this form can learnpublic java.util.Set<Gen2TechnicalMachines> getTMMoves2()
Set
of Gen2TechnicalMachines
moves this form can learnpublic java.util.Set<Gen1TechnicalMachines> getTMMoves1()
Set
of Gen1TechnicalMachines
moves this form can learnpublic java.util.Set<ITechnicalMove> getGenerationMoves(int generation)
generation
- The generationpublic java.util.List<ImmutableAttack> getMovesUpToLevel(int level)
level
- The inclusive pokemonLevelpublic java.util.List<ImmutableAttack> getMovesAtLevel(int level)
level
- The pokemonLevelpublic Moveset loadMoveset(int level)
level
- The pokemonLevel generated atpublic Moveset loadMoveset(int level, @Nullable Ability ability)
level
- The pokemonLevel generated atability
- The ability to use. Can be null to not set.public static Moves.Builder builder()
Moves
builderpublic java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,ImmutableAttack>> getFormatLevelMoves()
public java.util.List<ImmutableAttack> getAllMoves()
public boolean canLearn(ImmutableAttack immutableAttack)
public boolean canLearn(Stats stats, ImmutableAttack attack, BaseStatsLearnType... types)
@Nonnull public java.util.List<ITechnicalMove> getTMMovesFor(int gen)
public boolean canLearn(ITechnicalMove move)
public boolean canLearnViaOtherSet(ITechnicalMove move)
public java.util.Set<ImmutableAttack> getAllTMTRHMMoves()
public boolean canLearnTMTRHM(ImmutableAttack attackName)
public boolean isMoveInSet(java.util.Set<? extends ITechnicalMove> tms, java.lang.String attack)