@Override public void activate() { InterlevelScene.returnDepth = Dungeon.depth; Belongings belongings = Dungeon.hero.belongings; for (Notes.Record rec : Notes.getRecords()){ if (rec.depth() == Dungeon.depth){ Notes.remove(rec); } } for (Item i : belongings){ if (i instanceof LloydsBeacon && ((LloydsBeacon) i).returnDepth == Dungeon.depth) ((LloydsBeacon) i).returnDepth = -1; } InterlevelScene.mode = InterlevelScene.Mode.RESET; Game.switchScene(InterlevelScene.class); } }
@Override public void activate() { InterlevelScene.returnDepth = Dungeon.depth; Belongings belongings = Dungeon.hero.belongings; for (Notes.Record rec : Notes.getRecords()){ if (rec.depth() == Dungeon.depth){ Notes.remove(rec); } } for (Item i : belongings){ if (i instanceof LloydsBeacon && ((LloydsBeacon) i).returnDepth == Dungeon.depth) ((LloydsBeacon) i).returnDepth = -1; } InterlevelScene.mode = InterlevelScene.Mode.RESET; Game.switchScene(InterlevelScene.class); } }
@Override public void restoreFromBundle(Bundle bundle) { super.restoreFromBundle(bundle); landmark = Landmark.valueOf(bundle.getString(LANDMARK)); }
@Override public void storeInBundle(Bundle bundle) { super.storeInBundle(bundle); bundle.put( KEY, key ); } }
@Override public void restoreFromBundle(Bundle bundle) { super.restoreFromBundle(bundle); key = (Key) bundle.get(KEY); }
@Override public void storeInBundle(Bundle bundle) { super.storeInBundle(bundle); bundle.put( LANDMARK, landmark.toString() ); } }
@Override public void storeInBundle(Bundle bundle) { super.storeInBundle(bundle); bundle.put( KEY, key ); } }
@Override public void storeInBundle(Bundle bundle) { super.storeInBundle(bundle); bundle.put( LANDMARK, landmark.toString() ); } }
@Override public void restoreFromBundle(Bundle bundle) { super.restoreFromBundle(bundle); key = (Key) bundle.get(KEY); }
@Override public void restoreFromBundle(Bundle bundle) { super.restoreFromBundle(bundle); landmark = Landmark.valueOf(bundle.getString(LANDMARK)); }