package com.aelfengard.i3.packet;
import java.util.List;
import com.aelfengard.i3.LPCUtils;
import com.aelfengard.i3.LPCMixed;
public class EmoteToPacket extends I3Packet {
public static final String TOKEN = "emoteto";
private LPCMixed originatorMudName = new LPCMixed("");
private LPCMixed originatorUsername = new LPCMixed("");
private LPCMixed targetMudName = new LPCMixed("");
private LPCMixed targetUsername = new LPCMixed("");
private LPCMixed origVisName = new LPCMixed("");
private LPCMixed message = new LPCMixed("");
public EmoteToPacket() {
super(I3Packet.Type.EMOTE_TO);
}
public EmoteToPacket(List<LPCMixed> args) {
this();
originatorMudName = args.get(2);
originatorUsername = args.get(3);
targetMudName = args.get(4);
targetUsername = args.get(5);
origVisName = args.get(6);
message = args.get(7);
}
public List<LPCMixed> toList() {
return LPCUtils.makeList(
TOKEN,
5, originatorMudName,
originatorUsername,
targetMudName,
targetUsername,
origVisName,
message
);
}
public LPCMixed getMessage() {
return message;
}
public void setMessage(LPCMixed message) {
this.message = message;
}
public LPCMixed getOriginatorMudName() {
return originatorMudName;
}
public void setOriginatorMudName(LPCMixed originatorMudName) {
this.originatorMudName = originatorMudName;
}
public LPCMixed getOriginatorUsername() {
return originatorUsername;
}
public void setOriginatorUsername(LPCMixed originatorUsername) {
this.originatorUsername = originatorUsername;
}
public LPCMixed getOrigVisName() {
return origVisName;
}
public void setOrigVisName(LPCMixed origVisName) {
this.origVisName = origVisName;
}
public LPCMixed getTargetMudName() {
return targetMudName;
}
public void setTargetMudName(LPCMixed targetMudName) {
this.targetMudName = targetMudName;
}
public LPCMixed getTargetUsername() {
return targetUsername;
}
public void setTargetUsername(LPCMixed targetUsername) {
this.targetUsername = targetUsername;
}
}