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

A selector that re-orders it's children based on the mutation policy field. More...

Inheritance diagram for BAD.MutatingSelector:
BAD.Branch BAD.Node

Public Member Functions

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

Public Attributes

MutationPolicy policy = MutationPolicy.MoveToTop
 
- Public Attributes inherited from BAD.Branch
List< Nodechildren = 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
 

Additional Inherited Members

- Protected Member Functions inherited from BAD.Node
virtual void ResolveArguments ()
 

Detailed Description

A selector that re-orders it's children based on the mutation policy field.

Member Function Documentation

override void BAD.MutatingSelector.Apply ( object[]  args)
inlinevirtual

Reimplemented from BAD.Node.

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

Reimplemented from BAD.Node.

override string BAD.MutatingSelector.ToString ( )
inline

Member Data Documentation

MutationPolicy BAD.MutatingSelector.policy = MutationPolicy.MoveToTop

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