use of eidolons.game.battlecraft.logic.dungeon.universal.DungeonMaster in project Eidolons by IDemiurge.
the class LE_MapMaster method generateNew.
public static void generateNew(Mission mission, Level level, boolean alt) {
DUNGEON_TEMPLATES template = new EnumMaster<DUNGEON_TEMPLATES>().retrieveEnumConst(DUNGEON_TEMPLATES.class, ListChooser.chooseEnum(DUNGEON_TEMPLATES.class));
if (template == null) {
if (!DialogMaster.confirm("Generate by standard template?")) {
return;
}
}
Dungeon dungeon = level.getDungeon();
// dungeon.setPlan(null);
// ++ size, fills, zone prefs ++ BUILD PARAMS
dungeon.setTemplate(template);
initBuildParams(alt, level.getLocation());
// new DungeonMapGenerator()
// new Location()
DungeonMaster master = level.getDungeonMaster();
LevelEditor.getSimulation().getUnits().clear();
level.init();
level.getMinimap().init();
level.getMinimap().getGrid().refresh();
}
Aggregations