Annotation Interface AbilityInfo


@Target(TYPE) @Retention(RUNTIME) @Inherited public @interface AbilityInfo
The AbilityInfo annotation is used to define the properties of an Ability. It includes information such as cast type, cooldown, description, duration, impact, impact angle, multi-target capability, name, origin, pivot offsets, range, and value.
  • Element Details

    • castType

      CastType castType
      The cast type of the ability.
      Returns:
      The cast type of the ability
      Default:
      INSTANT
    • cooldown

      int cooldown
      The cooldown of the ability.
      Returns:
      The cooldown of the ability
      Default:
      0
    • description

      String description
      The description of the ability.
      Returns:
      The description of the ability
      Default:
      ""
    • duration

      int duration
      The duration of the ability.
      Returns:
      The duration of the ability
      Default:
      0
    • impact

      int impact
      The impact of the ability.
      Returns:
      The impact of the ability
      Default:
      0
    • impactAngle

      int impactAngle
      The impact angle of the ability.
      Returns:
      The impact angle of the ability
      Default:
      360
    • multiTarget

      boolean multiTarget
      Whether the ability is multi-target.
      Returns:
      true if the ability is multi-target; false otherwise
      Default:
      false
    • name

      String name
      The name of the ability.
      Returns:
      The name of the ability
      Default:
      ""
    • origin

      The origin of the ability.
      Returns:
      The origin of the ability
      Default:
      COLLISIONBOX_CENTER
    • pivotOffsetX

      double pivotOffsetX
      The pivot offset X of the ability.
      Returns:
      The pivot offset X of the ability
      Default:
      0.0
    • pivotOffsetY

      double pivotOffsetY
      The pivot offset Y of the ability.
      Returns:
      The pivot offset Y of the ability
      Default:
      0.0
    • range

      int range
      The range of the ability.
      Returns:
      The range of the ability
      Default:
      0
    • value

      int value
      The value of the ability.
      Returns:
      The value of the ability
      Default:
      0