public static void loadGlobal() { if (global == null) { try { Bundle bundle = FileUtils.bundleFromFile( BADGES_FILE ); global = restore( bundle ); } catch (IOException e) { global = new HashSet<Badge>(); } } }
public static void loadGlobal() { if (global == null) { try { Bundle bundle = FileUtils.bundleFromFile( BADGES_FILE ); global = restore( bundle ); } catch (IOException e) { global = new HashSet<Badge>(); } } }
public static Level loadLevel( int save ) throws IOException { Dungeon.level = null; Actor.clear(); Bundle bundle = FileUtils.bundleFromFile( GamesInProgress.depthFile( save, depth)) ; Level level = (Level)bundle.get( LEVEL ); if (level == null){ throw new IOException(); } else { return level; } }
public static Level loadLevel( int save ) throws IOException { Dungeon.level = null; Actor.clear(); Bundle bundle = FileUtils.bundleFromFile( GamesInProgress.depthFile( save, depth)) ; Level level = (Level)bundle.get( LEVEL ); if (level == null){ throw new IOException(); } else { return level; } }
public static void loadGlobal(){ if (loaded){ return; } Bundle bundle; try { bundle = FileUtils.bundleFromFile( JOURNAL_FILE ); } catch (IOException e){ bundle = new Bundle(); } Catalog.restore( bundle ); Document.restore( bundle ); loaded = true; }
public static void loadGlobal(){ if (loaded){ return; } Bundle bundle; try { bundle = FileUtils.bundleFromFile( JOURNAL_FILE ); } catch (IOException e){ bundle = new Bundle(); } Catalog.restore( bundle ); Document.restore( bundle ); loaded = true; }
try { Bundle bundle = FileUtils.bundleFromFile(gameFile(slot)); info = new Info(); info.slot = slot;
Bundle bundle = FileUtils.bundleFromFile( RANKINGS_FILE );
Bundle bundle = FileUtils.bundleFromFile( RANKINGS_FILE );
try { Bundle bundle = FileUtils.bundleFromFile(gameFile(slot)); info = new Info(); info.slot = slot;
Bundle bundle = FileUtils.bundleFromFile(BONES_FILE);
Bundle bundle = FileUtils.bundleFromFile(BONES_FILE);
if (FileUtils.fileExists(name + ".dat")){ try { Bundle gamedata = FileUtils.bundleFromFile(name + ".dat"); FileUtils.bundleToFile(GamesInProgress.gameFile(i), gamedata); FileUtils.deleteFile(name + ".dat"); gamedata = FileUtils.bundleFromFile(name + depth + ".dat"); FileUtils.bundleToFile(GamesInProgress.depthFile(i, depth), gamedata); FileUtils.deleteFile(name + depth + ".dat");
if (FileUtils.fileExists(name + ".dat")){ try { Bundle gamedata = FileUtils.bundleFromFile(name + ".dat"); FileUtils.bundleToFile(GamesInProgress.gameFile(i), gamedata); FileUtils.deleteFile(name + ".dat"); gamedata = FileUtils.bundleFromFile(name + depth + ".dat"); FileUtils.bundleToFile(GamesInProgress.depthFile(i, depth), gamedata); FileUtils.deleteFile(name + depth + ".dat");
public static void loadGame( int save, boolean fullLoad ) throws IOException { Bundle bundle = FileUtils.bundleFromFile( GamesInProgress.gameFile( save ) );
public static void loadGame( int save, boolean fullLoad ) throws IOException { Bundle bundle = FileUtils.bundleFromFile( GamesInProgress.gameFile( save ) );