Class BounceMovement

All Implemented Interfaces:
LifeMovement, LifeMovementFragment

public class BounceMovement extends AbstractLifeMovement
代表彈跳(跳躍落地反彈)類型的生物移動片段。

繼承自 AbstractLifeMovement,額外持有 offset(落地偏移量,Point), 序列化時在基礎位置後附上偏移向量,再接狀態碼與持續時間。 由 handling.channel.handler.MovementParse 於解析跳躍彈跳指令時實體化, 廣播給同地圖其他客戶端以同步彈跳動畫。

  • Constructor Details

    • BounceMovement

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