use of eidolons.game.battlecraft.logic.dungeon.location.building.DungeonPlan in project Eidolons by IDemiurge.
the class LocationBuilder method buildDungeon.
@Override
public Location buildDungeon(String data, List<Node> nodeList) {
this.nodeList = nodeList;
location = (super.buildDungeon(data, nodeList));
DUNGEON_TEMPLATES template = null;
DungeonPlan plan = new DungeonPlan(template, (location));
plan.setLoaded(true);
for (Node n : nodeList) {
processNode(n, getDungeon(), plan);
}
location.initEntrances();
plan.setStringData(data);
initDynamicObjData(location, plan);
return location;
}
use of eidolons.game.battlecraft.logic.dungeon.location.building.DungeonPlan in project Eidolons by IDemiurge.
the class Location method newSublevel.
private Dungeon newSublevel(Dungeon dungeon, ObjType type, int z, int level, ENTRANCE_LAYOUT entranceLayout) {
ObjType dungeonType = new ObjType(type);
if (level != 0) {
dungeonType.setName(type.getName() + ", Level " + level);
}
String group = type.getSubGroupingKey();
String path = PathFinder.getDungeonLevelFolder() + group + "\\";
File file = FileManager.getRandomFile(path);
String data = FileManager.readFile(file);
DungeonPlan plan = new LocationBuilder().loadDungeonMap(data);
adjustPlanToEntrance(plan, entranceLayout, file.getName());
new LocationBuilder().transformDungeonPlan(plan);
Dungeon sublevel = new Dungeon(dungeonType);
// dungeon.getSubLevels().add(sublevel);
return sublevel;
}
Aggregations