An object of additional options which describes and modifies the term.
An internal flag for whether the term has been evaluated
Is this term intermediate, and should be evaluated first as part of the simplification process?
An array of additional attributes which should be retained when the term is serialized
A regular expression pattern which identifies optional term-level flavor text
A regular expression which identifies term-level flavor text
A regular expression used to match a term of this type
A string representation of the formula, including optional flavor text.
Optional flavor text which modifies and describes this term.
Evaluate the term, processing its inputs and finalizing its total.
Options which modify how the RollTerm is evaluated
The evaluated RollTerm
Serialize the RollTerm to a JSON string which allows it to be saved in the database or embedded in text. This method should return an object suitable for passing to the JSON.stringify function.
Construct a RollTerm from a provided data object
Provided data from an un-serialized term
The constructed RollTerm
Reconstruct a RollTerm instance from a provided JSON string
A serialized JSON representation of a DiceTerm
A reconstructed RollTerm from the provided JSON
Define term-specific logic for how a de-serialized data object is restored as a functional RollTerm
The de-serialized term data
The re-constructed RollTerm object
A type of RollTerm used to represent strings which have not yet been matched.