A type of RollTerm used to apply a function from the Math library.
The named function in the Math environment which should be applied to the term
An array of string argument terms for the function
The cached Roll instances for each function argument
The cached result of evaluating the method arguments
Is this term intermediate, and should be evaluated first as part of the simplification process?
An object of additional options which describes and modifies the term.
An internal flag for whether the term has been evaluated
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
An array of evaluated DiceTerm instances that should be bubbled up to the parent Roll
A string representation of the formula, including optional flavor text.
Optional flavor text which modifies and describes this term.
This method is temporarily factored out in order to provide different behaviors synchronous evaluation. This will be removed in 0.10.x
Evaluate the term.
Options which modify how the RollTerm is evaluated, see RollTerm#evaluate
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