diff options
Diffstat (limited to 'NET/worlds/scape/Point3.java')
| -rw-r--r-- | NET/worlds/scape/Point3.java | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/NET/worlds/scape/Point3.java b/NET/worlds/scape/Point3.java new file mode 100644 index 0000000..b874e52 --- /dev/null +++ b/NET/worlds/scape/Point3.java @@ -0,0 +1,77 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import java.io.IOException; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class Point3 +/* */ extends Point3Temp +/* */ implements Persister +/* */ { +/* */ public Point3() +/* */ { +/* 29 */ super(0); +/* */ } +/* */ +/* */ public Point3(float x, float y, float z) +/* */ { +/* 34 */ super(0); +/* */ +/* 36 */ this.x = x; +/* 37 */ this.y = y; +/* 38 */ this.z = z; +/* */ } +/* */ +/* */ +/* */ public Point3(Point3Temp p) +/* */ { +/* 44 */ this(p.x, p.y, p.z); +/* */ } +/* */ +/* 47 */ private static Object classCookie = new Object(); +/* */ +/* */ public void saveState(Saver s) throws IOException +/* */ { +/* 51 */ s.saveVersion(0, classCookie); +/* 52 */ s.saveFloat(this.x); +/* 53 */ s.saveFloat(this.y); +/* 54 */ s.saveFloat(this.z); +/* */ } +/* */ +/* */ public void restoreState(Restorer r) throws IOException, TooNewException +/* */ { +/* 59 */ switch (r.restoreVersion(classCookie)) { +/* */ case 0: +/* 61 */ this.x = r.restoreFloat(); +/* 62 */ this.y = r.restoreFloat(); +/* 63 */ this.z = r.restoreFloat(); +/* 64 */ break; +/* */ default: +/* 66 */ throw new TooNewException(); +/* */ } +/* */ } +/* */ +/* */ public void postRestore(int version) {} +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\Point3.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |