ChairMovement.java
资源名称:src.rar [点击查看]
上传用户:gwt600
上传日期:2021-06-03
资源大小:704k
文件大小:1k
源码类别:
游戏
开发平台:
Java
- package net.sf.odinms.server.movement;
- import java.awt.Point;
- import net.sf.odinms.tools.data.output.LittleEndianWriter;
- public class ChairMovement extends AbstractLifeMovement {
- private int unk;
- public ChairMovement(int type, Point position, int duration, int newstate) {
- super(type, position, duration, newstate);
- }
- public int getUnk() {
- return unk;
- }
- public void setUnk(int unk) {
- this.unk = unk;
- }
- @Override
- public void serialize(LittleEndianWriter lew) {
- lew.write(getType());
- lew.writeShort(getPosition().x);
- lew.writeShort(getPosition().y);
- lew.writeShort(unk);
- lew.write(getNewstate());
- lew.writeShort(getDuration());
- }
- }