本文整理汇总了Java中constants.QuickMove.QuickMoveNPC类的典型用法代码示例。如果您正苦于以下问题:Java QuickMoveNPC类的具体用法?Java QuickMoveNPC怎么用?Java QuickMoveNPC使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
QuickMoveNPC类属于constants.QuickMove包,在下文中一共展示了QuickMoveNPC类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getQuickMoveInfo
import constants.QuickMove.QuickMoveNPC; //导入依赖的package包/类
public static byte[] getQuickMoveInfo(boolean show, List<QuickMoveNPC> qm) {
PacketWriter pw = new PacketWriter();
pw.writeShort(SendPacketOpcode.QUICK_MOVE.getValue());
pw.write(qm.size() <= 0 ? 0 : show ? qm.size() : 0);
if (show && qm.size() > 0) {
for (QuickMoveNPC qmn : qm) {
pw.writeInt(0);
pw.writeInt(qmn.getId());
pw.writeInt(qmn.getType());
pw.writeInt(qmn.getLevel());
pw.writeMapleAsciiString(qmn.getDescription());
pw.writeLong(PacketHelper.getTime(-2));
pw.writeLong(PacketHelper.getTime(-1));
}
}
return pw.getPacket();
}
示例2: getQuickMoveInfo
import constants.QuickMove.QuickMoveNPC; //导入依赖的package包/类
public static byte[] getQuickMoveInfo(boolean show, List<QuickMoveNPC> qm) {
PacketWriter pw = new PacketWriter();
pw.writeShort(SendPacketOpcode.QUICK_MOVE.getValue());
pw.write(qm.size() <= 0 ? 0 : show ? qm.size() : 0);
if (show && qm.size() > 0) {
for (QuickMoveNPC qmn : qm) {
pw.writeInt(0);
pw.writeInt(qmn.getId());
pw.writeInt(qmn.getType());
pw.writeInt(qmn.getLevel());
pw.writeMapleAsciiString(qmn.getDescription());
pw.writeLong(PacketHelper.getTime(-2));
pw.writeLong(PacketHelper.getTime(-1));
}
}
return pw.getPacket();
}
示例3: getQuickMoveInfo
import constants.QuickMove.QuickMoveNPC; //导入依赖的package包/类
public static byte[] getQuickMoveInfo(boolean show, List<QuickMoveNPC> qm) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.QUICK_MOVE.getValue());
mplew.write(qm.size() <= 0 ? 0 : show ? qm.size() : 0);
if (show && qm.size() > 0) {
for (QuickMoveNPC qmn : qm) {
mplew.writeInt(0);
mplew.writeInt(qmn.getId());
mplew.writeInt(qmn.getType());
mplew.writeInt(qmn.getLevel());
mplew.writeMapleAsciiString(qmn.getDescription());
mplew.writeLong(PacketHelper.getTime(-2));
mplew.writeLong(PacketHelper.getTime(-1));
}
}
return mplew.getPacket();
}