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/appearActorCmd.java | |
| download | worlds.jar-main.tar.xz worlds.jar-main.zip | |
Diffstat (limited to 'NET/worlds/network/appearActorCmd.java')
| -rw-r--r-- | NET/worlds/network/appearActorCmd.java | 91 |
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 |