Class AbilityAttributes

java.lang.Object
de.gurkenlabs.litiengine.abilities.AbilityAttributes

public class AbilityAttributes extends Object
The AbilityAttributes class represents the attributes of an ability in the game. Each ability has a set of attributes such as cooldown, duration, impact, impact angle, range, and value.
  • Constructor Details

    • AbilityAttributes

      public AbilityAttributes(AbilityInfo info)
      Initializes a new instance of the AbilityAttributes class.
      Parameters:
      info - The information of the ability
    • AbilityAttributes

      public AbilityAttributes(int cooldown, int duration, int range, int impact, int impactAngle, int value)
      Initializes a new instance of the AbilityAttributes class with the specified attribute values.
      Parameters:
      cooldown - The cooldown value of the ability
      duration - The duration value of the ability
      range - The range value of the ability
      impact - The impact value of the ability
      impactAngle - The impact angle value of the ability
      value - The value of the ability
  • Method Details

    • cooldown

      public Attribute<Integer> cooldown()
      Gets the cooldown attribute of this ability.
      Returns:
      The cooldown attribute of this ability
    • duration

      public Attribute<Integer> duration()
      Gets the duration attribute of this ability.
      Returns:
      The duration attribute of this ability
    • impact

      public Attribute<Integer> impact()
      Gets the impact attribute of this ability.
      Returns:
      The impact attribute of this ability
    • impactAngle

      public Attribute<Integer> impactAngle()
      Gets the impact angle attribute of this ability.
      Returns:
      The impact angle attribute of this ability
    • range

      public Attribute<Integer> range()
      Gets the range attribute of this ability.
      Returns:
      The range attribute of this ability
    • value

      public Attribute<Integer> value()
      Gets the value attribute of this ability.
      Returns:
      The value attribute of this ability
    • copyValues

      public void copyValues(AbilityAttributes otherAttributes)
      Copies the values from another `AbilityAttributes` instance to this instance.
      Parameters:
      otherAttributes - the `AbilityAttributes` instance from which to copy values