package NET.worlds.console; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; public class BBDisappearDroneCommand extends BlackBoxCommand { private String name; public BBDisappearDroneCommand(String pName) { this(); this.name = new String(pName); } public BBDisappearDroneCommand() { this.commandType = 6; } @Override public boolean execute() { ArmyOfZombies.instance().killZombie(this.name); this.doCallback(true); return true; } @Override public void save(DataOutputStream dos) throws IOException { super.save(dos); dos.writeUTF(this.name); } @Override public void load(DataInputStream dis) throws IOException { super.load(dis); this.name = new String(dis.readUTF()); } }