public class ExperienceGainEvent extends BattleEvent
| Modifier and Type | Field and Description |
|---|---|
PokemonLink |
pokemon
The Pokemon gaining the experience
|
battleController| Constructor and Description |
|---|
ExperienceGainEvent(BattleController controller,
PokemonLink pokemon,
int experience,
ExperienceGainType type) |
| Modifier and Type | Method and Description |
|---|---|
int |
getExperience()
Gets how much experience will be given currently.
|
ExperienceGainType |
getType()
Gets how the experience has been gained.
|
boolean |
isFromBattle() |
void |
setExperience(int experience)
Sets the new experience that will be given.
|
getBattleControllerpublic final PokemonLink pokemon
public ExperienceGainEvent(@Nullable
BattleController controller,
PokemonLink pokemon,
int experience,
ExperienceGainType type)
public boolean isFromBattle()
public int getExperience()
public void setExperience(int experience)
experience - - The new amount of experience. Negatives will be forced to zero.public ExperienceGainType getType()