当前位置: 首页>>代码示例>>Java>>正文


Java QuickMoveNPC类代码示例

本文整理汇总了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();
}
 
开发者ID:ergothvs,项目名称:Lucid2.0,代码行数:20,代码来源:CField.java

示例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();
}
 
开发者ID:Maxcloud,项目名称:Mushy,代码行数:20,代码来源:CField.java

示例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();
}
 
开发者ID:skorch37,项目名称:Asteria,代码行数:21,代码来源:CField.java


注:本文中的constants.QuickMove.QuickMoveNPC类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。