Interface BattleMenuInterface

All Known Implementing Classes:
BattleMenu

public interface BattleMenuInterface
This interface should be implemented by BattleMenu.

The methods represent calls to update data attributes and the display.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setNames(String[] playerNames, String[] opponentNames)
    Sets the names of the player and opponent characters participating in the active battle.
    void
    Updates the display corresponding to the given affected character.
  • Method Details

    • setNames

      void setNames(String[] playerNames, String[] opponentNames)
      Sets the names of the player and opponent characters participating in the active battle.
      Parameters:
      playerNames - array of name Strings representing player characters.
      opponentNames - array of name Strings representing opponents.
    • updateCharacter

      void updateCharacter(String character)
      Updates the display corresponding to the given affected character.
      Parameters:
      character - the character who needs to be updated on the screen.