public static ArrayList<Record> getRecords(){ return getRecords(Record.class); }
public static ArrayList<Record> getRecords(){ return getRecords(Record.class); }
public void updateKeys(){ keys = new int[keyMap.size()+1]; for (Notes.KeyRecord rec : Notes.getRecords(Notes.KeyRecord.class)){ if (rec.depth() < Dungeon.depth){ //only ever 1 black key keys[0] = 1; } else if (rec.depth() == Dungeon.depth){ keys[keyMap.get(rec.type())] += rec.quantity(); } } totalKeys = 0; for (int k : keys){ totalKeys += k; } dirty = true; }
public void updateKeys(){ keys = new int[keyMap.size()+1]; for (Notes.KeyRecord rec : Notes.getRecords(Notes.KeyRecord.class)){ if (rec.depth() < Dungeon.depth){ //only ever 1 black key keys[0] = 1; } else if (rec.depth() == Dungeon.depth){ keys[keyMap.get(rec.type())] += rec.quantity(); } } totalKeys = 0; for (int k : keys){ totalKeys += k; } dirty = true; }
@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); } }
ArrayList<Notes.KeyRecord> keys = Notes.getRecords(Notes.KeyRecord.class); if (!keys.isEmpty()){ ColorBlock line = new ColorBlock( width(), 1, 0xFF222222); ArrayList<Notes.LandmarkRecord> landmarks = Notes.getRecords(Notes.LandmarkRecord.class); if (!landmarks.isEmpty()){ ColorBlock line = new ColorBlock( width(), 1, 0xFF222222);
ArrayList<Notes.KeyRecord> keys = Notes.getRecords(Notes.KeyRecord.class); if (!keys.isEmpty()){ ColorBlock line = new ColorBlock( width(), 1, 0xFF222222); ArrayList<Notes.LandmarkRecord> landmarks = Notes.getRecords(Notes.LandmarkRecord.class); if (!landmarks.isEmpty()){ ColorBlock line = new ColorBlock( width(), 1, 0xFF222222);