blob: 5777dd4bd5529346b833d1a4e90fff62d0ea3d58 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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
*/
|