/* */ package NET.worlds.scape; /* */ /* */ import NET.worlds.core.Std; /* */ import java.io.DataInputStream; /* */ import java.io.DataOutputStream; /* */ import java.io.IOException; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class ForwardAttribute /* */ extends Attribute /* */ implements NonPersister /* */ { /* */ private Attribute _from; /* */ /* */ ForwardAttribute(Attribute forwarder, int attrID) /* */ { /* 47 */ super(attrID); /* 48 */ this._from = forwarder; /* */ } /* */ /* */ /* */ protected void noteAddingTo(SuperRoot owner) /* */ { /* 54 */ WObject w = (WObject)owner.getOwner(); /* 55 */ if ((w.getSharer().getMode() & 0x1) != 0) { /* 56 */ throw new ClassCastException("Must forward to unforwarded object"); /* */ } /* */ } /* */ /* */ /* */ /* */ public void detach() /* */ { /* 64 */ super.detach(); /* */ /* 66 */ this._from.unforward(); /* */ } /* */ /* */ /* */ public int getFlags() /* */ { /* 72 */ return this._from.getFlags(); /* */ } /* */ /* */ public void setFlag(int flag, boolean onoff) /* */ { /* 77 */ this._from.setFlag(flag, onoff); /* */ } /* */ /* */ /* */ /* */ /* */ public void generateNetData(DataOutputStream s) /* */ throws IOException /* */ { /* 86 */ this._from.generateNetData(s); /* */ } /* */ /* */ public void setFromNetData(DataInputStream ds, int len) throws IOException /* */ { /* 91 */ this._from.setFromNetData(ds, len); /* */ /* */ /* 94 */ ValueEvent e = new ValueEvent(Std.getFastTime(), /* 95 */ this._from.getOwner(), (WObject)this._from.getOwner().getOwner(), this._from); /* 96 */ this._from.trigger(e); /* */ } /* */ /* */ public String toString() /* */ { /* 101 */ return super.toString() + "[forwarded from " + this._from.getName() + "]"; /* */ } /* */ /* */ public void restoreState(Restorer r) /* */ throws IOException, TooNewException /* */ { /* 107 */ if (!$assertionsDisabled) throw new AssertionError(); /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\ForwardAttribute.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */