Repeat
dendron.decorators.repeat.Repeat
Bases: DecoratorNode
A Repeat node ticks its child node repeatedly as long as the child
continues to return SUCCESS
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
`str`
|
The given name of this node. |
required |
child |
`dendron.tree_node.TreeNode`
|
Optional child node. If |
required |
n_times |
`int`
|
Number of times to |
required |
Source code in src/dendron/decorators/repeat.py
reset()
tick()
Tick the child node until either it returns FAILURE
or the child
is tick()
ed n_times
.