package com.aelfengard.i3.packet;
import java.util.List;
import com.aelfengard.i3.LPCUtils;
import com.aelfengard.i3.LPCMixed;
public class StartupReplyPacket extends I3Packet {
public static final String TOKEN = "startup-reply";
private LPCMixed originatorMudName = new LPCMixed("");
private LPCMixed targetMudName = new LPCMixed("");
private LPCMixed routerList = new LPCMixed(null);
private LPCMixed password = new LPCMixed(-1);
public StartupReplyPacket() {
super(I3Packet.Type.STARTUP_REPLY);
}
public StartupReplyPacket(List<LPCMixed> args) {
this();
originatorMudName = args.get(2);
targetMudName = args.get(4);
routerList = args.get(6);
password = args.get(7);
}
public List<LPCMixed> toList() {
return LPCUtils.makeList(
TOKEN,
5, originatorMudName,
0, targetMudName,
0, routerList,
password
);
}
public LPCMixed getOriginatorMudName() {
return originatorMudName;
}
public void setOriginatorMudName(LPCMixed originatorMudName) {
this.originatorMudName = originatorMudName;
}
public LPCMixed getPassword() {
return password;
}
public void setPassword(LPCMixed password) {
this.password = password;
}
public LPCMixed getRouterList() {
return routerList;
}
public void setRouterList(LPCMixed routerList) {
this.routerList = routerList;
}
public LPCMixed getTargetMudName() {
return targetMudName;
}
public void setTargetMudName(LPCMixed targetMudName) {
this.targetMudName = targetMudName;
}
}