Interface Consumable

All Known Implementing Classes:
HealthPotion, MegaPotion, UpgradeToken

public interface Consumable
Consumable is an interface that should only be implemented by items that can be use on a character

Items that are consumable are items that are one time use only

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    consume(@NotNull GameState state, @NotNull String characterName)
    This method allow a character to use an item on themselves.
  • Method Details

    • consume

      void consume(@NotNull @NotNull GameState state, @NotNull @NotNull String characterName)
      This method allow a character to use an item on themselves. It does NOT remove an item from the inventory.
      Parameters:
      state - the state of the game
      characterName - the name of the character to use the item on