Package wizardquest.gamemanager
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 TypeMethodDescriptionProvides a reference to all enemies in the encounter.getType()returns the type (name) of the encounter.booleanGives whether the encounter has been marked as complete or not.voidMarks the encounter as complete, meaning all entities within it are dead.voidResets 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.
-