summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/FileTexture.java
blob: a18a6a290622096d7e0e1310ef837dab9f30cd03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*     */ 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
 */