Interface EncounterInterface

All Known Implementing Classes:
Encounter

public interface EncounterInterface
Interface for encounters. Stores the enemies within the encounter and provides methods to interface with them.
  • Method Summary

    Modifier and Type
    Method
    Description
    Provides a reference to all enemies in the encounter.
    returns the type (name) of the encounter.
    boolean
    Gives whether the encounter has been marked as complete or not.
    void
    Marks the encounter as complete, meaning all entities within it are dead.
    void
    Resets the health of all enemies in the encounter.
  • Method Details

    • getEnemies

      EntityInterface[] getEnemies()
      Provides a reference to all enemies in the encounter.
      Returns:
      an array of references to the enemies in the encounter.
    • isComplete

      boolean isComplete()
      Gives whether the encounter has been marked as complete or not.
      Returns:
      Whether the encounter is complete.
    • markComplete

      void markComplete()
      Marks the encounter as complete, meaning all entities within it are dead.
    • getType

      EncounterEnum getType()
      returns the type (name) of the encounter.
      Returns:
      the encounter's type.
    • resetEnemyHealth

      void resetEnemyHealth()
      Resets the health of all enemies in the encounter. Should be called when the encounter is retried.