Members
controllers :Array.<Controller>
Type:
- Array.<Controller>
- Source:
Methods
addController(controller, doRandomize)
Adds a controller to the randomizer and attaches a DieIcon.
Parameters:
Name | Type | Description |
---|---|---|
controller |
Controller | The controller to add. |
doRandomize |
boolean | Whether this controller should be randomized. |
- Source:
randomize()
Randomizes all controllers marked as randomizable and not hidden.
- Source:
removeController(controller)
Removes a controller from the randomizer.
Parameters:
Name | Type | Description |
---|---|---|
controller |
Controller | The controller to remove. |
- Source:
toggleDoRandomize(die)
Toggles the randomization state for a controller via its DieIcon.
Parameters:
Name | Type | Description |
---|---|---|
die |
DieIcon | The DieIcon instance to toggle. |
- Source: