summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/BumpAttribute.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/scape/BumpAttribute.java')
-rw-r--r--NET/worlds/scape/BumpAttribute.java89
1 files changed, 89 insertions, 0 deletions
diff --git a/NET/worlds/scape/BumpAttribute.java b/NET/worlds/scape/BumpAttribute.java
new file mode 100644
index 0000000..53cd71c
--- /dev/null
+++ b/NET/worlds/scape/BumpAttribute.java
@@ -0,0 +1,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
+ */ \ No newline at end of file