From 2223e55d5d9c61f4ab93d8dab0b5f9820272c8fe Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 10 Feb 2021 16:52:36 +0900 Subject: add get all states --- .../dungeonsguide/dungeon/mechanics/DungeonBreakableWall.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonBreakableWall.java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonBreakableWall.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonBreakableWall.java index 701f9a4a..a6c1341b 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonBreakableWall.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonBreakableWall.java @@ -1,5 +1,6 @@ package kr.syeyoung.dungeonsguide.dungeon.mechanics; +import com.google.common.collect.Sets; import kr.syeyoung.dungeonsguide.dungeon.data.OffsetPoint; import kr.syeyoung.dungeonsguide.dungeon.data.OffsetPointSet; import kr.syeyoung.dungeonsguide.dungeon.actions.Action; @@ -94,4 +95,9 @@ public class DungeonBreakableWall implements DungeonMechanic, RouteBlocker { public Set getPossibleStates(DungeonRoom dungeonRoom) { return isBlocking(dungeonRoom) ? Collections.singleton("open") : Collections.emptySet(); } + + @Override + public Set getTotalPossibleStates(DungeonRoom dungeonRoom) { + return Sets.newHashSet("open", "closed"); + } } -- cgit