SpecialRoom.initForFloor(); for (int i = 0; i < specials; i++) { SpecialRoom s = SpecialRoom.createRoom(); if (s instanceof PitRoom) specials++; initRooms.add(s);
public static void restoreRoomsFromBundle( Bundle bundle ) { runSpecials.clear(); if (bundle.contains( ROOMS )) { for (Class<? extends Room> type : bundle.getClassArray(ROOMS)) { //pre-0.7.0 saves if (type != null && type != LaboratoryRoom.class) { runSpecials.add(type); } } } else { initForRun(); ShatteredPixelDungeon.reportException(new Exception("specials array didn't exist!")); } pitNeededDepth = bundle.getInt(PIT); }
private void reset() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); SpecialRoom.resetPitRoom(Dungeon.depth+1); Dungeon.depth--; Level level = Dungeon.newLevel(); Dungeon.switchLevel( level, level.entrance ); }
bundle.put( QUESTS, quests ); SpecialRoom.storeRoomsInBundle( bundle ); SecretRoom.storeRoomsInBundle( bundle );
SpecialRoom.restoreRoomsFromBundle(bundle); SecretRoom.restoreRoomsFromBundle(bundle);
bundle.put( QUESTS, quests ); SpecialRoom.storeRoomsInBundle( bundle ); SecretRoom.storeRoomsInBundle( bundle );
SpecialRoom.restoreRoomsFromBundle(bundle); SecretRoom.restoreRoomsFromBundle(bundle);
SpecialRoom.initForFloor(); for (int i = 0; i < specials; i++) { SpecialRoom s = SpecialRoom.createRoom(); if (s instanceof PitRoom) specials++; initRooms.add(s);
public static void restoreRoomsFromBundle( Bundle bundle ) { runSpecials.clear(); if (bundle.contains( ROOMS )) { for (Class<? extends Room> type : bundle.getClassArray(ROOMS)) { //pre-0.7.0 saves if (type != null && type != LaboratoryRoom.class) { runSpecials.add(type); } } } else { initForRun(); ShatteredPixelDungeon.reportException(new Exception("specials array didn't exist!")); } pitNeededDepth = bundle.getInt(PIT); }
private void reset() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); SpecialRoom.resetPitRoom(Dungeon.depth+1); Dungeon.depth--; Level level = Dungeon.newLevel(); Dungeon.switchLevel( level, level.entrance ); }
Ring.initGems(); SpecialRoom.initForRun(); SecretRoom.initForRun();
Ring.initGems(); SpecialRoom.initForRun(); SecretRoom.initForRun();