blob: 53cd71c54d1adc412239e05347a5d64229ea57d9 (
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
|
/* */ package NET.worlds.scape;
/* */
/* */ import java.io.DataInputStream;
/* */ import java.io.DataOutputStream;
/* */ import java.io.IOException;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class BumpAttribute
/* */ extends Attribute
/* */ {
/* */ public BumpAttribute(int attrID)
/* */ {
/* 32 */ super(attrID);
/* */ }
/* */
/* */
/* */ public BumpAttribute() {}
/* */
/* */
/* */ protected void noteAddingTo(SuperRoot owner)
/* */ {
/* 41 */ WObject w = (WObject)((Sharer)owner).getOwner();
/* */
/* 43 */ w._bumpableAttribute = this;
/* */ }
/* */
/* */ public void detach()
/* */ {
/* 48 */ WObject w = (WObject)((Sharer)getOwner()).getOwner();
/* 49 */ w._bumpableAttribute = null;
/* 50 */ super.detach();
/* */ }
/* */
/* */ public void generateNetData(DataOutputStream s) throws IOException
/* */ {
/* 55 */ s.writeBoolean(((WObject)getOwner().getOwner()).getBumpable());
/* */ }
/* */
/* */ public void setFromNetData(DataInputStream ds, int len) throws IOException
/* */ {
/* 60 */ ((WObject)getOwner().getOwner()).setBumpable(ds.readBoolean());
/* */ }
/* */
/* */
/* */
/* 65 */ private static Object classCookie = new Object();
/* */
/* */ public void saveState(Saver s) throws IOException
/* */ {
/* 69 */ s.saveVersion(0, classCookie);
/* 70 */ super.saveState(s);
/* */ }
/* */
/* */ public void restoreState(Restorer r) throws IOException, TooNewException
/* */ {
/* 75 */ switch (r.restoreVersion(classCookie)) {
/* */ case 0:
/* 77 */ super.restoreState(r);
/* 78 */ break;
/* */ default:
/* 80 */ throw new TooNewException();
/* */ }
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\BumpAttribute.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|