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