Creates a new instance of the attribute class.
The parameters for the attribute static class.
Optional
gamePointer: GameA pointer to the game instance.
Readonly
boostThe boost of the attribute. NOTE: This will not be used if the boost is disabled.
Optional
gameThe game pointer/reference
Readonly
initialThe initial value of the attribute.
Protected
Readonly
pointerThe data for the attribute.
The static data for the attribute.
Gets the value of the attribute, and also updates the value stored. NOTE: This getter must be called every time the boost is updated, else the value stored will not be updated.
The calculated value of the attribute.
Sets the value of the attribute. NOTE: This setter should not be used when boost is enabled.
The value to set the attribute to.
Represents a game attribute. Attribute is the data class and AttributeStatic is the static class where all the useful functions are. To use, destruct the
data
andstatic
properties from the class.