summaryrefslogtreecommitdiff
path: root/NET/worlds/network/appearActorCmd.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/network/appearActorCmd.java')
-rw-r--r--NET/worlds/network/appearActorCmd.java91
1 files changed, 91 insertions, 0 deletions
diff --git a/NET/worlds/network/appearActorCmd.java b/NET/worlds/network/appearActorCmd.java
new file mode 100644
index 0000000..5777dd4
--- /dev/null
+++ b/NET/worlds/network/appearActorCmd.java
@@ -0,0 +1,91 @@
+/* */ package NET.worlds.network;
+/* */
+/* */ import NET.worlds.scape.Drone;
+/* */ import java.io.IOException;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class appearActorCmd
+/* */ extends receivedNetPacket
+/* */ {
+/* */ public static final byte APPEARACTORCMD = 12;
+/* */ protected int _roomID;
+/* */ protected short _x;
+/* */ protected short _y;
+/* */ protected short _z;
+/* */ protected short _direction;
+/* */
+/* */ public appearActorCmd()
+/* */ {
+/* 53 */ this._commandType = 12;
+/* */ }
+/* */
+/* */ void parseNetData(ServerInputStream data) throws IOException
+/* */ {
+/* 58 */ this._roomID = data.readUnsignedShort();
+/* 59 */ this._x = data.readShort();
+/* 60 */ this._y = data.readShort();
+/* 61 */ this._z = data.readShort();
+/* 62 */ this._direction = data.readShort();
+/* */ }
+/* */
+/* */ void process(WorldServer _serv) throws Exception
+/* */ {
+/* 67 */ Drone d = Drone.make(this._objID, _serv);
+/* */
+/* */
+/* 70 */ this._direction = ((short)(90 - this._direction));
+/* */
+/* 72 */ this._direction = ((short)(360 - this._direction));
+/* */
+/* 74 */ NetworkRoom netroom = _serv.getNetworkRoom(this._roomID);
+/* 75 */ if (netroom != null) {
+/* 76 */ d.appear(netroom.getRoom(), this._x, this._y, this._z, this._direction);
+/* */ }
+/* */ }
+/* */
+/* */ public String toString(WorldServer serv)
+/* */ {
+/* 82 */ return
+/* 83 */ "APPRACTR " + this._objID.toString(serv) + " in " + this._roomID + " @ " + this._x + "," + this._y + "," + this._z + "," + this._direction;
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\appearActorCmd.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file