public void setState(Vector vector) { flush(); try { for (int i = 0; i < vector.size(); i++) { Object aobj[] = (Object[]) vector.elementAt(i); String s = (String) aobj[0]; Texture texture = (Texture) aobj[1]; if (!s.equals("--dummy--")) addTexture(s, texture); } } catch (Exception exception) { Logger.log("Not a valid dump!", 0); } }
private TextureManager() { lastID = -1; lastName = null; flush(); }