ChairMovement.java
上传用户:gwt600
上传日期:2021-06-03
资源大小:704k
文件大小:1k
源码类别:

游戏

开发平台:

Java

  1. package net.sf.odinms.server.movement;
  2. import java.awt.Point;
  3. import net.sf.odinms.tools.data.output.LittleEndianWriter;
  4. public class ChairMovement extends AbstractLifeMovement  {
  5. private int unk;
  6. public ChairMovement(int type, Point position, int duration, int newstate) {
  7. super(type, position, duration, newstate);
  8. }
  9. public int getUnk() {
  10. return unk;
  11. }
  12. public void setUnk(int unk) {
  13. this.unk = unk;
  14. }
  15. @Override
  16. public void serialize(LittleEndianWriter lew) {
  17. lew.write(getType());
  18. lew.writeShort(getPosition().x);
  19. lew.writeShort(getPosition().y);
  20. lew.writeShort(unk);
  21. lew.write(getNewstate());
  22. lew.writeShort(getDuration());
  23. }
  24. }