/** * Used to remove all sounds. */ public void clearSounds() { if(!initialized) return; sounds.clear(); }
/** * Clears the current group of objects; recommended if you intend to store under multiple outerName keys. * @return this for chaining */ public TextStorage clear() { contents.clear(); return this; }
@Override public PoliticalMapper restore(String text) { int pos; PoliticalMapper pm = new PoliticalMapper(); pm.width = Integer.decode(text.substring(0, (pos = text.indexOf('\t')))); pm.height = Integer.decode(text.substring(pos+1, (pos = text.indexOf('\t', pos+1)))); pm.name = text.substring(pos+1, (pos = text.indexOf('\t', pos+1))); pm.politicalMap = Converters.convertArrayChar2D.restore(text.substring(pos+1, (pos = text.indexOf('\t', pos+1)))); pm.atlas.clear(); pm.atlas.putAll(convertMapCharString.restore(text.substring(pos+1, (pos = text.indexOf('\t', pos+1))))); pm.spokenLanguages.clear(); pm.spokenLanguages.putAll(convertMapCharListLanguage.restore(text.substring(pos+1, (pos = text.indexOf('\t', pos+1))))); pm.rng = convertStatefulRNG.restore(text.substring(pos+1)); return pm; } };
@Override public SpillWorldMap restore(String text) { int pos; SpillWorldMap swm = new SpillWorldMap( Integer.decode(text.substring(0, (pos = text.indexOf('\t')))), Integer.decode(text.substring(pos+1, (pos = text.indexOf('\t', pos+1)))), text.substring(pos+1, (pos = text.indexOf('\t', pos+1))) ); swm.heightMap = Converters.convertArrayInt2D.restore(text.substring(pos+1, (pos = text.indexOf('\t', pos+1)))); swm.mountains = Converters.convertArrayCoord.restore(text.substring(pos+1, (pos = text.indexOf('\t', pos+1)))); swm.politicalMap = Converters.convertArrayChar2D.restore(text.substring(pos+1, (pos = text.indexOf('\t', pos+1)))); swm.atlas.clear(); swm.atlas.putAll(convertMapCharString.restore(text.substring(pos+1, (pos = text.indexOf('\t', pos+1))))); swm.rng = convertStatefulRNG.restore(text.substring(pos+1)); return swm; } };
OrderedMap<Coord, Double> fresh2 = new OrderedMap<>(fresh.size()); fresh2.putAll(fresh); fresh.clear();
bestPoints.clear(); bestPoints.put(Coord.get(x, y), ap); } }
bestPoints.clear(); bestPoints.put(Coord.get(x, y), ap);
bestPoints.clear(); bestPoints.put(Coord.get(x, y), ap);
bestPoints.clear(); bestPoints.put(Coord.get(x, y), ap);
bestPoints.clear(); bestPoints.put(Coord.get(x, y), ap);
bestPoints.clear(); bestPoints.put(Coord.get(x, y), ap);
used.clear(); for(Coord down : downs.get(i))
bestPoints.clear(); bestPoints.put(Coord.get(x, y), ap);
bestPoints.clear(); bestPoints.put(Coord.get(x, y), ap);