Interface Applicable

All Known Implementing Classes:
BuffItem, DefenseItem, HealItem, Item, Skill, TomeItem

public interface Applicable
Interface for objects that can apply an effect to an entity. Both Item and Skill (HEAL_SELF) implement this interface, allowing BattleManager to use them without knowing the concrete class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(Entity target)
    Applies the effect to the target entity.
    Returns a description of the effect for display in the UI.
  • Method Details

    • apply

      void apply(Entity target)
      Applies the effect to the target entity.
      Parameters:
      target - Entity to receive the effect
    • getEffectDescription

      String getEffectDescription()
      Returns a description of the effect for display in the UI.
      Returns:
      Effect description text