blob: 0e9dc968c9235430a67561fafd92d904a9a64abc (
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
|
/* */ package NET.worlds.console;
/* */
/* */ import NET.worlds.scape.HoloDrone;
/* */ import java.io.DataInputStream;
/* */ import java.io.DataOutputStream;
/* */ import java.io.IOException;
/* */
/* */ public class BBAppearDroneCommand extends BlackBoxCommand
/* */ {
/* */ private short x;
/* */ private short y;
/* */ private short z;
/* */ private short dir;
/* */ private String room;
/* */ private String name;
/* */
/* */ public BBAppearDroneCommand(String roomName, String pName, short px, short py, short pz, short pdir)
/* */ {
/* 19 */ this();
/* 20 */ this.x = px;
/* 21 */ this.y = py;
/* 22 */ this.z = pz;
/* 23 */ this.dir = pdir;
/* 24 */ this.room = new String(roomName);
/* 25 */ this.name = new String(pName);
/* */ }
/* */
/* */ public BBAppearDroneCommand() {
/* 29 */ this.commandType = 5;
/* */ }
/* */
/* */ public boolean execute()
/* */ {
/* 34 */ HoloDrone d = new HoloDrone(null, null);
/* 35 */ d.setName(this.name);
/* */
/* 37 */ NET.worlds.scape.Room r = NET.worlds.scape.World.findRoomByName(this.room);
/* 38 */ if (r != null) {
/* 39 */ d.appear(r, this.x, this.y, this.z, this.dir);
/* 40 */ d.makeTag(true);
/* 41 */ ArmyOfZombies.instance().addZombie(d);
/* 42 */ doCallback(true);
/* */ } else {
/* 44 */ doCallback(false);
/* */ }
/* */
/* 47 */ return true;
/* */ }
/* */
/* */ public void save(DataOutputStream dos) throws IOException
/* */ {
/* 52 */ super.save(dos);
/* 53 */ dos.writeShort(this.x);
/* 54 */ dos.writeShort(this.y);
/* 55 */ dos.writeShort(this.z);
/* 56 */ dos.writeShort(this.dir);
/* 57 */ dos.writeUTF(this.room);
/* 58 */ dos.writeUTF(this.name);
/* */ }
/* */
/* */ public void load(DataInputStream dis) throws IOException
/* */ {
/* 63 */ super.load(dis);
/* 64 */ this.x = dis.readShort();
/* 65 */ this.y = dis.readShort();
/* 66 */ this.z = dis.readShort();
/* 67 */ this.dir = dis.readShort();
/* 68 */ this.room = new String(dis.readUTF());
/* 69 */ this.name = new String(dis.readUTF());
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\BBAppearDroneCommand.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|