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