Package wizardquest.gamemanager
Class Encounter
java.lang.Object
wizardquest.gamemanager.Encounter
- All Implemented Interfaces:
EncounterInterface
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
Encounter
-
-
Method Details
-
getEnemies
Description copied from interface:EncounterInterfaceProvides a reference to all enemies in the encounter.- Specified by:
getEnemiesin interfaceEncounterInterface- Returns:
- an array of references to the enemies in the encounter.
-
isComplete
public boolean isComplete()Description copied from interface:EncounterInterfaceGives whether the encounter has been marked as complete or not.- Specified by:
isCompletein interfaceEncounterInterface- Returns:
- Whether the encounter is complete.
-
markComplete
public void markComplete()Description copied from interface:EncounterInterfaceMarks the encounter as complete, meaning all entities within it are dead.- Specified by:
markCompletein interfaceEncounterInterface
-
getType
Description copied from interface:EncounterInterfacereturns the type (name) of the encounter.- Specified by:
getTypein interfaceEncounterInterface- Returns:
- the encounter's type.
-
resetEnemyHealth
public void resetEnemyHealth()Description copied from interface:EncounterInterfaceResets the health of all enemies in the encounter. Should be called when the encounter is retried.- Specified by:
resetEnemyHealthin interfaceEncounterInterface
-