Search in sources :

Example 1 with DUNGEON_TEMPLATES

use of eidolons.game.battlecraft.logic.dungeon.location.LocationBuilder.DUNGEON_TEMPLATES 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();
}
Also used : DUNGEON_TEMPLATES(eidolons.game.battlecraft.logic.dungeon.location.LocationBuilder.DUNGEON_TEMPLATES) Dungeon(eidolons.game.battlecraft.logic.dungeon.universal.Dungeon) DungeonMaster(eidolons.game.battlecraft.logic.dungeon.universal.DungeonMaster)

Aggregations

DUNGEON_TEMPLATES (eidolons.game.battlecraft.logic.dungeon.location.LocationBuilder.DUNGEON_TEMPLATES)1 Dungeon (eidolons.game.battlecraft.logic.dungeon.universal.Dungeon)1 DungeonMaster (eidolons.game.battlecraft.logic.dungeon.universal.DungeonMaster)1