public interface IMissionsHolder
Modifier and Type | Method and Description |
---|---|
boolean |
canCompleteMissionAgain(Mission<?> mission)
Check whether the island can complete a mission again.
|
void |
completeMission(Mission<?> mission)
Complete a mission.
|
int |
getAmountMissionCompleted(Mission<?> mission)
Get the amount of times mission was completed.
|
java.util.List<Mission<?>> |
getCompletedMissions()
Get the list of the completed missions of the player.
|
java.util.Map<Mission<?>,java.lang.Integer> |
getCompletedMissionsWithAmounts()
Get all the completed missions with the amount of times they were completed.
|
boolean |
hasCompletedMission(Mission<?> mission)
Check whether the island has completed the mission before.
|
void |
resetMission(Mission<?> mission)
Reset a mission.
|
void completeMission(Mission<?> mission)
mission
- The mission to complete.void resetMission(Mission<?> mission)
mission
- The mission to reset.boolean hasCompletedMission(Mission<?> mission)
mission
- The mission to check.boolean canCompleteMissionAgain(Mission<?> mission)
mission
- The mission to check.int getAmountMissionCompleted(Mission<?> mission)
mission
- The mission to check.java.util.List<Mission<?>> getCompletedMissions()
java.util.Map<Mission<?>,java.lang.Integer> getCompletedMissionsWithAmounts()