uBAD
A Behaviour and Decision library for Unity3D
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
BAD.Sleep Class Reference

Sleep for a number of seconds before returning Success. Variance parameter modifies the duration by a random amount. More...

Inheritance diagram for BAD.Sleep:
BAD.Leaf BAD.Node

Public Member Functions

override IEnumerator< NodeResultNodeTask ()
 
override string ToString ()
 
- Public Member Functions inherited from BAD.Node
virtual void Apply (object[] arguments)
 
virtual T GetArg< T > (int index)
 
 Node ()
 
IEnumerator< NodeResultGetNodeTask ()
 
virtual void Abort ()
 
override string ToString ()
 

Public Attributes

float seconds = 1
 
float variance = 0.1f
 
- 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 ()
 

Detailed Description

Sleep for a number of seconds before returning Success. Variance parameter modifies the duration by a random amount.

Member Function Documentation

override IEnumerator<NodeResult> BAD.Sleep.NodeTask ( )
inlinevirtual

Reimplemented from BAD.Node.

override void BAD.Sleep.ResolveArguments ( )
inlineprotectedvirtual

Reimplemented from BAD.Node.

override string BAD.Sleep.ToString ( )
inline

Member Data Documentation

float BAD.Sleep.seconds = 1
float BAD.Sleep.variance = 0.1f

The documentation for this class was generated from the following file: