Class AbsoluteLifeMovement

java.lang.Object
server.movement.AbstractLifeMovement
server.movement.AbsoluteLifeMovement
All Implemented Interfaces:
LifeMovement, LifeMovementFragment

public class AbsoluteLifeMovement extends AbstractLifeMovement
以絕對世界座標表達的生物移動片段,對應移動指令類型 071416444546

除繼承自 AbstractLifeMovement 的位置、持續時間、狀態外,額外持有:

  • pixelsPerSecond:速度向量(每秒像素偏移量)。
  • offset:相對於目標位置的修正偏移。
  • fh:僅 type 14 時寫入的腳架(foothold)ID。
  • unk:保留欄位,隨封包原樣回傳。
serializetype 值條件寫入 fhoffset, 由 handling.channel.handler.MovementParse 解析後填入,再廣播給同地圖其他客戶端。
  • Constructor Details

    • AbsoluteLifeMovement

      public AbsoluteLifeMovement(int type, Point position, int duration, int newstate)
  • Method Details

    • setPixelsPerSecond

      public void setPixelsPerSecond(Point wobble)
    • setOffset

      public void setOffset(Point wobble)
    • setFh

      public void setFh(short fh)
    • setUnk

      public void setUnk(short unk)
    • getUnk

      public short getUnk()
    • defaulted

      public void defaulted()
    • serialize

      public void serialize(MaplePacketLittleEndianWriter lew)