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 theAbilityAttributes
class with the specified attribute values.AbilityAttributes
(AbilityInfo info) Initializes a new instance of theAbilityAttributes
class. -
Method Summary
Modifier and TypeMethodDescriptioncooldown()
Gets the cooldown attribute of this ability.void
copyValues
(AbilityAttributes otherAttributes) Copies the values from another `AbilityAttributes` instance to this instance.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 theAbilityAttributes
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 theAbilityAttributes
class 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
-
duration
-
impact
-
impactAngle
-
range
-
value
-
copyValues
Copies the values from another `AbilityAttributes` instance to this instance.- Parameters:
otherAttributes
- the `AbilityAttributes` instance from which to copy values
-