/* */ package NET.worlds.scape; /* */ /* */ import java.io.IOException; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class FileTexture /* */ extends Texture /* */ implements Persister /* */ { /* */ private String _urlName; /* */ /* */ static {} /* */ /* */ public FileTexture(String urlName, String filename) /* */ { /* 40 */ makeTexture(urlName, filename); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ protected FileTexture() {} /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public static native void nativeInit(); /* */ /* */ /* */ /* */ /* */ /* */ /* */ public static native FileTexture dictLookup(String paramString); /* */ /* */ /* */ /* */ /* */ /* */ /* */ private native void makeTexture(String paramString1, String paramString2); /* */ /* */ /* */ /* */ /* */ /* */ /* 80 */ public String getName() { return this._urlName; } /* */ /* 82 */ private static Object classCookie = new Object(); /* */ /* */ public void saveState(Saver s) throws IOException /* */ { /* 86 */ s.saveVersion(0, classCookie); /* 87 */ super.saveState(s); /* 88 */ s.saveString(this._urlName); /* */ } /* */ /* */ /* */ public void restoreState(Restorer r) /* */ throws IOException, TooNewException /* */ { /* 95 */ switch (r.restoreVersion(classCookie)) { /* */ case 0: /* 97 */ super.restoreState(r); /* 98 */ String name = r.restoreString(); /* 99 */ makeTexture(name, name); /* 100 */ break; /* */ default: /* 102 */ throw new TooNewException(); /* */ } /* */ String name; /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\FileTexture.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */