Constructor and Description |
---|
MedicineRevive(IHealHP healHP)
Initializes the medicine definition.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
healPokemon(PokemonLink pxm)
Heals the Pokémon according to the item type.
|
boolean |
useMedicine(PokemonLink target,
double multiplier)
Heals the Pokémon with the item.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
useMedicine
public MedicineRevive(IHealHP healHP)
healHP
- The calculation for how much hp will be healed.public boolean useMedicine(PokemonLink target, double multiplier)
IMedicine
useMedicine
in interface IMedicine
target
- The Pokémon the item is being used on.multiplier
- Multiplier value for the heal amount.protected boolean healPokemon(PokemonLink pxm)
pxm
- The Pokémon being healed.