aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-17 13:59:42 +0900
committersyeyoung <cyong06@naver.com>2021-01-17 13:59:42 +0900
commit7c45bc056f404eb743bd97bf2c3c5900cde27083 (patch)
treec7ca3a9ed8915fd9c37620fbd284ff7ad1afb1a8 /src/main/java/kr/syeyoung/dungeonsguide/roomprocessor
parenta22e0c7e35a95698dbee1e7b17fc03fd7a4957e8 (diff)
downloadSkyblock-Dungeons-Guide-7c45bc056f404eb743bd97bf2c3c5900cde27083.tar.gz
Skyblock-Dungeons-Guide-7c45bc056f404eb743bd97bf2c3c5900cde27083.tar.bz2
Skyblock-Dungeons-Guide-7c45bc056f404eb743bd97bf2c3c5900cde27083.zip
more things
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomprocessor')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessor.java1
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/GeneralBossfightProcessor.java7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessor.java
index c893258e..395c3542 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessor.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessor.java
@@ -7,4 +7,5 @@ import java.util.List;
public interface BossfightProcessor extends RoomProcessor {
List<String> getPhases();
String getCurrentPhase();
+ List<String> getNextPhases();
} \ No newline at end of file
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/GeneralBossfightProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/GeneralBossfightProcessor.java
index 4fa60623..6c593548 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/GeneralBossfightProcessor.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/GeneralBossfightProcessor.java
@@ -25,6 +25,13 @@ public class GeneralBossfightProcessor implements BossfightProcessor {
}
@Override
+ public List<String> getNextPhases() {
+ if (currentPhase == null) return Collections.emptyList();
+ List<String> phases = new ArrayList<String>(this.currentPhase.getNextPhases());
+ return phases;
+ }
+
+ @Override
public String getCurrentPhase() {
return currentPhase == null ? "unknown" : currentPhase.getPhase();
}