/* */ 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 */