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/network/shortLocCmd.java | |
| download | worlds.jar-main.tar.xz worlds.jar-main.zip | |
Diffstat (limited to 'NET/worlds/network/shortLocCmd.java')
| -rw-r--r-- | NET/worlds/network/shortLocCmd.java | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/NET/worlds/network/shortLocCmd.java b/NET/worlds/network/shortLocCmd.java new file mode 100644 index 0000000..5f1eee8 --- /dev/null +++ b/NET/worlds/network/shortLocCmd.java @@ -0,0 +1,90 @@ +/* */ package NET.worlds.network; +/* */ +/* */ import NET.worlds.scape.Drone; +/* */ import java.io.IOException; +/* */ import java.io.PrintStream; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class shortLocCmd +/* */ extends receivedNetPacket +/* */ { +/* */ public static final byte SHORTLOCCMD = 4; +/* */ protected byte _dx; +/* */ protected byte _dy; +/* */ protected byte _ddirection; +/* */ +/* */ public shortLocCmd() +/* */ { +/* 47 */ this._commandType = 4; +/* */ } +/* */ +/* */ void parseNetData(ServerInputStream data) throws IOException +/* */ { +/* 52 */ this._dx = data.readByte(); +/* 53 */ this._dy = data.readByte(); +/* 54 */ this._ddirection = data.readByte(); +/* */ } +/* */ +/* */ void process(WorldServer _serv) throws Exception +/* */ { +/* 59 */ NetworkObject o = _serv.getObject(this._objID); +/* 60 */ if (o == null) +/* */ { +/* 62 */ System.out.println("Unknown short id: " + toString(_serv)); +/* 63 */ new Exception().printStackTrace(System.out); +/* 64 */ return; +/* */ } +/* */ +/* 67 */ if ((o instanceof Drone)) { +/* 68 */ ((Drone)o).shortLoc(this._dx, this._dy, this._ddirection); +/* */ } +/* */ } +/* */ +/* */ +/* */ public String toString(WorldServer serv) +/* */ { +/* 75 */ return +/* 76 */ "SHORTLOC " + this._objID.toString(serv) + " delta=" + this._dx + "," + this._dy + "," + this._ddirection; +/* */ } +/* */ +/* */ public String toString() +/* */ { +/* 81 */ return +/* 82 */ "SHORTLOC " + this._objID + " delta=" + this._dx + "," + this._dy + "," + this._ddirection; +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\shortLocCmd.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |