diff options
author | syeyoung <cyong06@naver.com> | 2021-01-17 13:59:42 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-01-17 13:59:42 +0900 |
commit | 7c45bc056f404eb743bd97bf2c3c5900cde27083 (patch) | |
tree | c7ca3a9ed8915fd9c37620fbd284ff7ad1afb1a8 /src/main/java/kr/syeyoung/dungeonsguide/roomprocessor | |
parent | a22e0c7e35a95698dbee1e7b17fc03fd7a4957e8 (diff) | |
download | Skyblock-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')
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(); } |