Skip to content

Reference

tilttek/dice
TypeRole
DiceRollerThe library in one object: parse, read DiceParser, write, translate, roll, roll verifiably, roll to replay
LimitsThe bounds against abuse
Parser\DiceParserAn input into a Pool, in a notation, within the limits
Parser\Lexer, Token, TokenTypeThe input read character by character
Reader\RolisteamReaderA command of Rolisteam's DiceParser into a Pool (Rolisteam's DiceParser)
Reader\RolisteamRewriterInternal: the command's tokens written again in the library's notation, and the positions kept
Contract\MacrosThe macros an input names, $name (macros)
Expression\PoolOne or more instructions and their comments; canonical()
Expression\NodeA node: Constant, Dice, ComputedDice, ValueList, PreviousDice, Operation, Negation, FunctionCall, Reference, InstructionDice, Group, TextList, Sentence, Conditional, Choice
Expression\DiceA count, a die and its modifiers
Expression\ComputedDiceDice whose count or sides are rolled first
Expression\ValueList, PreviousDiceValues taken as dice; the dice of the set before, judged again
Expression\Operator+ - * / % ^ and their precedence
Expression\FunctionCall, MathFunctionfloor ceil round abs min max repeat and their arguments
Expression\Reference, InstructionDiceThe result of an instruction before, or its item; the dice of instructions, bound or merged
Expression\GroupExpressions whose totals are judged as dice
Expression\TextList, ListItemItems drawn from a list of texts, by weight or range
Expression\Sentence, Placeholder, PlaceholderKindA text and the placeholders replaced when it is rolled
Expression\Conditional, Choice, SwitchCaseif and switch, their conditions and branches
Expression\ModifiersThe modifiers of a set of dice, their order and their checks
Expression\Reroll, Repetition, Explosion, Transform, Selection, SelectionMode, Occurrences, Critical, Look, SortThe modifiers
Expression\Validator, Comparison, Comparator, Range, Modulo, Composite, JunctionWhich values a modifier applies to
Expression\Condition, ScopeA validator and what it is checked against
Die\DieType, NumericDieWhat a die is; the dice that take modifiers and roll their faces
Die\StandardDie, FudgeDie, RangeDie, CustomDieNumbered, Fudge, range and custom dice
Custom\Face, Shape, DieDefinition, CustomDiceCustom dice declared by the application
Notation\Notation, NotationsThe letters of a language
Notation\ExpressionWriter, NotationWriterAn expression written back, canonical or in a language
Rolling\RollerA pool rolled with the randomness and the rounding given
Rolling\ArithmeticInteger arithmetic, divisions rounded by a RoundingMode
Result\PoolResult, ExpressionResult, NodeResultA roll, its outputs, its totals and its rounding
Result\DiceResult, ConstantResult, OperationResult, NegationResult, FunctionResultThe result of each node that gives a number
Result\TextResult, ListResult, BranchResult, ReferenceResultA text, a list, a branch, a reference
Result\Outputs, NoticeOutputs written or flattened; what a roll could not do exactly
Result\RolledDie, DieOrigin, MarkOne die as it fell, and what became of it
Fairness\Seed, CommitmentA seed and its SHA-256
Fairness\FairRoller, VerifiableRollVerifiable rolls and their verification
Replay\Replayer, ReplayableRollRolls replayed die for die
Dialect\Dialect, DialectsThe notation of a virtual tabletop, and the registry
Dialect\Roll20, FoundryVtt, Avrae, RolisteamDiceParserThe built-in dialects
Dialect\Translation, UnsupportedA pool in a dialect, what it could not write, and its notices
Exception\DiceException and its five exceptionsExceptions