Annotation Interface CombatInfo


@Target(TYPE) @Retention(RUNTIME) @Inherited public @interface CombatInfo
This annotation provides initial values for combat entity attributes. It can be applied to types (classes, interfaces, etc.) and is inherited by subclasses.

Attributes:

  • hitpoints: The initial hitpoints of the combat entity. Default is CombatEntity.DEFAULT_HITPOINTS.
  • team: The team number of the combat entity. Default is 0.
  • isIndestructible: Indicates whether the combat entity is indestructible. Default is false.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The initial hitpoints of the combat entity.
    boolean
    Indicates whether the combat entity is indestructible.
    int
    The team number of the combat entity.
  • Element Details

    • hitpoints

      int hitpoints
      The initial hitpoints of the combat entity. Defaults to CombatEntity.DEFAULT_HITPOINTS.
      Returns:
      the initial hitpoints
      Default:
      100
    • team

      int team
      The team number of the combat entity. Defaults to 0.
      Returns:
      the team number
      Default:
      0
    • isIndestructible

      boolean isIndestructible
      Indicates whether the combat entity is indestructible. Defaults to false.
      Returns:
      true if the entity is indestructible, false otherwise
      Default:
      false