package com.aelfengard.i3.packet;
import java.util.Collections;
import java.util.List;
import com.aelfengard.i3.LPCUtils;
import com.aelfengard.i3.LPCMixed;
public class MudListPacket extends I3Packet {
public static final String TOKEN = "mudlist";
private LPCMixed originatorMudName = new LPCMixed("");
private LPCMixed targetMudName = new LPCMixed("");
private LPCMixed mudlistId = new LPCMixed(0);
private LPCMixed infoMapping = new LPCMixed(Collections.emptyMap());
public MudListPacket() {
super(I3Packet.Type.MUD_LIST);
}
public MudListPacket(List<LPCMixed> args) {
this();
originatorMudName = args.get(2);
targetMudName = args.get(4);
mudlistId = args.get(6);
infoMapping = args.get(7);
}
public List<LPCMixed> toList() {
return LPCUtils.makeList(
TOKEN,
5, originatorMudName,
0, targetMudName,
0, mudlistId,
infoMapping
);
}
public LPCMixed getInfoMapping() {
return infoMapping;
}
public void setInfoMapping(LPCMixed infoMapping) {
this.infoMapping = infoMapping;
}
public LPCMixed getMudlistId() {
return mudlistId;
}
public void setMudlistId(LPCMixed mudlistId) {
this.mudlistId = mudlistId;
}
public LPCMixed getOriginatorMudName() {
return originatorMudName;
}
public void setOriginatorMudName(LPCMixed originatorMudName) {
this.originatorMudName = originatorMudName;
}
public LPCMixed getTargetMudName() {
return targetMudName;
}
public void setTargetMudName(LPCMixed targetMudName) {
this.targetMudName = targetMudName;
}
}