uBAD
A Behaviour and Decision library for Unity3D
|
Runs a child node if it's cooldown timer less than 0; When the child executes the timer is set to T+seconds. Used for rate limiting. More...
Public Member Functions | |
override IEnumerator< NodeResult > | NodeTask () |
override string | ToString () |
Public Member Functions inherited from BAD.Decorator | |
override Branch | Add (Node child) |
Public Member Functions inherited from BAD.Branch | |
override void | Abort () |
Public Member Functions inherited from BAD.Node | |
virtual void | Apply (object[] arguments) |
virtual T | GetArg< T > (int index) |
Node () | |
IEnumerator< NodeResult > | GetNodeTask () |
override string | ToString () |
Public Attributes | |
float | seconds = 1 |
Public Attributes inherited from BAD.Branch | |
List< Node > | children = new List<Node> () |
Public Attributes inherited from BAD.Node | |
BADReactor | reactor |
bool | enabled = true |
NodeResult | state = null |
bool | running = false |
Branch | parent = null |
object[] | arguments |
Protected Member Functions | |
override void | ResolveArguments () |
Protected Member Functions inherited from BAD.Decorator | |
bool | ChildIsMissing () |
Runs a child node if it's cooldown timer less than 0; When the child executes the timer is set to T+seconds. Used for rate limiting.
|
inlinevirtual |
Reimplemented from BAD.Node.
|
inlineprotectedvirtual |
Reimplemented from BAD.Node.
|
inline |
float BAD.Cooldown.seconds = 1 |