Class AbilityAttributes
java.lang.Object
de.gurkenlabs.litiengine.abilities.AbilityAttributes
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 Summary
ConstructorsConstructorDescriptionAbilityAttributes(int cooldown, int duration, int range, int impact, int impactAngle, int value) Initializes a new instance of theAbilityAttributesclass with the specified attribute values.AbilityAttributes(AbilityInfo info) Initializes a new instance of theAbilityAttributesclass. -
Method Summary
Modifier and TypeMethodDescriptioncooldown()Gets the cooldown attribute of this ability.duration()Gets the duration attribute of this ability.impact()Gets the impact attribute of this ability.Gets the impact angle attribute of this ability.range()Gets the range attribute of this ability.value()Gets the value attribute of this ability.
-
Constructor Details
-
AbilityAttributes
Initializes a new instance of theAbilityAttributesclass.- 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 theAbilityAttributesclass with the specified attribute values.- Parameters:
cooldown- The cooldown value of the abilityduration- The duration value of the abilityrange- The range value of the abilityimpact- The impact value of the abilityimpactAngle- The impact angle value of the abilityvalue- The value of the ability
-
-
Method Details
-
cooldown
Gets the cooldown attribute of this ability.- Returns:
- The cooldown attribute of this ability
-
duration
Gets the duration attribute of this ability.- Returns:
- The duration attribute of this ability
-
impact
Gets the impact attribute of this ability.- Returns:
- The impact attribute of this ability
-
impactAngle
Gets the impact angle attribute of this ability.- Returns:
- The impact angle attribute of this ability
-
range
Gets the range attribute of this ability.- Returns:
- The range attribute of this ability
-
value
Gets the value attribute of this ability.- Returns:
- The value attribute of this ability
-