diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/ForwardAttribute.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/scape/ForwardAttribute.java')
| -rw-r--r-- | NET/worlds/scape/ForwardAttribute.java | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/NET/worlds/scape/ForwardAttribute.java b/NET/worlds/scape/ForwardAttribute.java new file mode 100644 index 0000000..ce58976 --- /dev/null +++ b/NET/worlds/scape/ForwardAttribute.java @@ -0,0 +1,115 @@ +/* */ 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 + */
\ No newline at end of file |