public class TrainerData extends java.lang.Object implements ITrainerData
Modifier and Type | Field and Description |
---|---|
java.lang.String |
id
The name of the Trainer class.
|
BaseTrainer |
trainerType
Indexing data for the Trainer.
|
int |
winnings
The base amount of PokéDollars awarded after defeating the Trainer.
|
Constructor and Description |
---|
TrainerData(java.lang.String id)
Initializes the NPC Trainer data.
|
Modifier and Type | Method and Description |
---|---|
void |
addChat(java.lang.String opening,
java.lang.String win,
java.lang.String lose)
Adds possible dialogue to the Trainer.
|
void |
addPokemon(PokemonBase poke)
Adds a possible Pokémon to the Trainer.
|
TrainerChat |
getChat(int index) |
int |
getMaxLevel() |
int |
getMaxPartyPokemon() |
int |
getMinLevel() |
int |
getMinPartyPokemon() |
java.lang.String |
getName(int index) |
int |
getRandomChat()
Randomly chooses an index corresponding to dialogue the Trainer can have.
|
int |
getRandomLevel()
Randomly chooses an index corresponding to a pokemonLevel the Trainer's Pokémon
can be.
|
int |
getRandomName()
Randomly chooses an index corresponding to a name the Trainer can have.
|
java.util.ArrayList<Pokemon> |
getRandomParty()
Randomly chooses a party for the Trainer to have.
|
public BaseTrainer trainerType
public int winnings
public java.lang.String id
public TrainerData(java.lang.String id)
id
- The name of the Trainer class.public void addPokemon(PokemonBase poke)
poke
- A Pokémon the Trainer can have.public void addChat(java.lang.String opening, java.lang.String win, java.lang.String lose)
opening
- Dialogue when the Trainer begins a battle.win
- Dialogue when the Trainer wins a battle.lose
- Dialogue when the Trainer loses a battle.public java.util.ArrayList<Pokemon> getRandomParty()
public int getRandomName()
public int getRandomChat()
public int getRandomLevel()
public int getMinLevel()
public int getMaxLevel()
public int getMinPartyPokemon()
public int getMaxPartyPokemon()
public java.lang.String getName(int index)
getName
in interface ITrainerData
public TrainerChat getChat(int index)
getChat
in interface ITrainerData