예제 #1
0
 public static void restoreFromBundle(Bundle bundle) {
   goldCollected = bundle.getInt(GOLD);
   deepestFloor = bundle.getInt(DEEPEST);
   enemiesSlain = bundle.getInt(SLAIN);
   foodEaten = bundle.getInt(FOOD);
   potionsCooked = bundle.getInt(ALCHEMY);
   piranhasKilled = bundle.getInt(PIRANHAS);
   nightHunt = bundle.getInt(NIGHT);
   ankhsUsed = bundle.getInt(ANKHS);
   duration = bundle.getFloat(DURATION);
   amuletObtained = bundle.getBoolean(AMULET);
 }
예제 #2
0
 @Override
 public void restoreFromBundle(Bundle bundle) {
   super.restoreFromBundle(bundle);
   left = bundle.getFloat(LEFT);
 }
예제 #3
0
 @Override
 public void restoreFromBundle(Bundle bundle) {
   time = bundle.getFloat(TIME);
   id = bundle.getInt(ID);
 }