Interface IMedicine

All Known Implementing Classes:
MedicinePotion, MedicineRevive, MedicineStatus

public interface IMedicine
Defines a way that medicine can heal a Pokémon.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
     
    boolean
    useMedicine(PokemonLink target, double multiplier)
    Heals the Pokémon with the item.
  • Method Details

    • useMedicine

      boolean useMedicine(PokemonLink target, double multiplier)
      Heals the Pokémon with the item.
      Parameters:
      target - The Pokémon the item is being used on.
      multiplier - Multiplier value for the heal amount.
      Returns:
      Whether to remove an instance of the item from the player's inventory.
    • useMedicine

      default boolean useMedicine(PokemonLink target)