public Bundlable get( String key ) { return getBundle( key ).get(); }
public Bundlable get( String key ) { return getBundle( key ).get(); }
public Bundlable get( String key ) { return getBundle( key ).get(); }
public static void restore( Bundle bundle ){ if (!bundle.contains( DOCUMENTS )){ return; } Bundle docBundle = bundle.getBundle( DOCUMENTS ); for ( Document doc : values()){ if (docBundle.contains(doc.name())){ List<String> pages = Arrays.asList(docBundle.getStringArray(doc.name())); for (String page : pages){ if (doc.pages.containsKey(page)) { doc.pages.put(page, true); } } } } }
public static void preview( GamesInProgress.Info info, Bundle bundle ) { info.depth = bundle.getInt( DEPTH ); info.challenges = (bundle.getInt( CHALLENGES ) != 0); if (info.depth == -1) { info.depth = bundle.getInt( "maxDepth" ); // FIXME } Hero.preview( info, bundle.getBundle( HERO ) ); }
public static void preview( GamesInProgress.Info info, Bundle bundle ) { info.depth = bundle.getInt( DEPTH ); info.version = bundle.getInt( VERSION ); info.challenges = bundle.getInt( CHALLENGES ); Hero.preview( info, bundle.getBundle( HERO ) ); Statistics.preview( info, bundle ); }
public static void preview( GamesInProgress.Info info, Bundle bundle ) { info.depth = bundle.getInt( DEPTH ); info.version = bundle.getInt( VERSION ); info.challenges = bundle.getInt( CHALLENGES ); Hero.preview( info, bundle.getBundle( HERO ) ); Statistics.preview( info, bundle ); }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { alternative = node.getBoolean( ALTERNATIVE ); given = node.getBoolean( GIVEN ); completed = node.getBoolean( COMPLETED ); reward = (Ring)node.get( REWARD ); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { alternative = node.getBoolean( ALTERNATIVE ); given = node.getBoolean( GIVEN ); completed = node.getBoolean( COMPLETED ); reward = (Ring)node.get( REWARD ); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { alternative = node.getBoolean( ALTERNATIVE ); given = node.getBoolean( GIVEN ); completed = node.getBoolean( COMPLETED ); reward = (Ring)node.get( REWARD ); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { alternative = node.getBoolean( ALTERNATIVE ); given = node.getBoolean( GIVEN ); completed = node.getBoolean( COMPLETED ); reforged = node.getBoolean( REFORGED ); } else { reset(); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { alternative = node.getBoolean( ALTERNATIVE ); given = node.getBoolean( GIVEN ); completed = node.getBoolean( COMPLETED ); reforged = node.getBoolean( REFORGED ); } else { reset(); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { alternative = node.getBoolean( ALTERNATIVE ); given = node.getBoolean( GIVEN ); completed = node.getBoolean( COMPLETED ); reforged = node.getBoolean( REFORGED ); } else { reset(); } }
@Override public void restoreFromBundle( Bundle bundle ) { super.restoreFromBundle(bundle); sandBags = bundle.getInt( SANDBAGS ); //these buffs belong to hourglass, need to handle unbundling within the hourglass class. if (bundle.contains( BUFF )){ Bundle buffBundle = bundle.getBundle( BUFF ); if (buffBundle.contains( timeFreeze.PARTIALTIME )) activeBuff = new timeFreeze(); else activeBuff = new timeStasis(); activeBuff.restoreFromBundle(buffBundle); } }
@Override public void restoreFromBundle( Bundle bundle ) { super.restoreFromBundle(bundle); sandBags = bundle.getInt( SANDBAGS ); //these buffs belong to hourglass, need to handle unbundling within the hourglass class. if (bundle.contains( BUFF )){ Bundle buffBundle = bundle.getBundle( BUFF ); if (buffBundle.contains( timeFreeze.PARTIALTIME )) activeBuff = new timeFreeze(); else activeBuff = new timeStasis(); activeBuff.restoreFromBundle(buffBundle); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { alternative = node.getBoolean( ALTERNATIVE ); completed = node.getBoolean( COMPLETED ); given = node.getBoolean( GIVEN ); wand1 = (Wand)node.get( WAND1 ); wand2 = (Wand)node.get( WAND2 ); } else { reset(); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { type = node.getInt(TYPE); given = node.getBoolean( GIVEN ); wand1 = (Wand)node.get( WAND1 ); wand2 = (Wand)node.get( WAND2 ); if (type == 2){ CeremonialCandle.ritualPos = node.getInt( RITUALPOS ); } } else { reset(); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { type = node.getInt(TYPE); given = node.getBoolean( GIVEN ); processed = node.getBoolean( PROCESSED ); depth = node.getInt( DEPTH ); weapon = (Weapon)node.get( WEAPON ); armor = (Armor)node.get( ARMOR ); } else { reset(); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { type = node.getInt(TYPE); given = node.getBoolean( GIVEN ); wand1 = (Wand)node.get( WAND1 ); wand2 = (Wand)node.get( WAND2 ); if (type == 2){ CeremonialCandle.ritualPos = node.getInt( RITUALPOS ); } } else { reset(); } }
public static void restoreFromBundle( Bundle bundle ) { Bundle node = bundle.getBundle( NODE ); if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) { type = node.getInt(TYPE); given = node.getBoolean( GIVEN ); processed = node.getBoolean( PROCESSED ); depth = node.getInt( DEPTH ); weapon = (Weapon)node.get( WEAPON ); armor = (Armor)node.get( ARMOR ); } else { reset(); } }