Enum Class SummonMovementType

java.lang.Object
java.lang.Enum<SummonMovementType>
server.maps.SummonMovementType
All Implemented Interfaces:
Serializable, Comparable<SummonMovementType>, Constable

public enum SummonMovementType extends Enum<SummonMovementType>
列舉召喚獸的移動模式,對應客戶端封包中的移動行為值。

每個列舉值持有一個整數代碼(由 getValue() 取得), 在 MapleSummon 建立時指定,並寫入生成封包供客戶端決定召喚獸的跟隨/繞行行為:

  • STATIONARY(0)— 靜止不動(章魚等)
  • FOLLOW(1)— 跟隨玩家(四轉法師系)
  • WALK_STATIONARY(2)— 在原地行走但不位移(Reaper)
  • CIRCLE_FOLLOW(4)— 繞玩家圓周移動(弓手系召喚獸)
  • CIRCLE_STATIONARY(5)— 繞固定點圓周移動(Gaviota)
  • Enum Constant Details

  • Method Details

    • values

      public static SummonMovementType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SummonMovementType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()