Class AbsoluteLifeMovement
java.lang.Object
server.movement.AbstractLifeMovement
server.movement.AbsoluteLifeMovement
- All Implemented Interfaces:
LifeMovement, LifeMovementFragment
以絕對世界座標表達的生物移動片段,對應移動指令類型
0、7、14、16、44、45、46。
除繼承自 AbstractLifeMovement 的位置、持續時間、狀態外,額外持有:
pixelsPerSecond:速度向量(每秒像素偏移量)。offset:相對於目標位置的修正偏移。fh:僅 type14時寫入的腳架(foothold)ID。unk:保留欄位,隨封包原樣回傳。
serialize 依 type 值條件寫入 fh 與 offset,
由 handling.channel.handler.MovementParse 解析後填入,再廣播給同地圖其他客戶端。-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidshortgetUnk()voidvoidsetFh(short fh) voidvoidsetPixelsPerSecond(Point wobble) voidsetUnk(short unk) Methods inherited from class AbstractLifeMovement
getDuration, getNewstate, getPosition, getType
-
Constructor Details
-
AbsoluteLifeMovement
-
-
Method Details
-
setPixelsPerSecond
-
setOffset
-
setFh
public void setFh(short fh) -
setUnk
public void setUnk(short unk) -
getUnk
public short getUnk() -
defaulted
public void defaulted() -
serialize
-