diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-15 16:56:06 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-15 16:56:06 +0900 |
commit | 917ca305d875924863cfcae7f1cb8d805a98122d (patch) | |
tree | d58a14f0344b332e2a207e3a25b45847a018aae3 /src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/tree | |
parent | 5009cd40af60e0519609ef1656483ba14b60eef1 (diff) | |
download | Skyblock-Dungeons-Guide-917ca305d875924863cfcae7f1cb8d805a98122d.tar.gz Skyblock-Dungeons-Guide-917ca305d875924863cfcae7f1cb8d805a98122d.tar.bz2 Skyblock-Dungeons-Guide-917ca305d875924863cfcae7f1cb8d805a98122d.zip |
this works fantasticallyas
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/tree')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/tree/ActionTree.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/tree/ActionTree.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/tree/ActionTree.java index 334f7c2b..009924cf 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/tree/ActionTree.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/tree/ActionTree.java @@ -35,6 +35,10 @@ public class ActionTree { tree.setChildren(set); return tree; } + public static ActionTree buildActionTree(Action actions, DungeonRoom dungeonRoom) { + return buildActionTree(null, actions, dungeonRoom, new HashMap<Action, ActionTree>()); + } + private static ActionTree buildActionTree(ActionTree parent, Action action, DungeonRoom dungeonRoom, Map<Action, ActionTree> alreadyBuilt) { |