C# Class lab.SucceederNode

Inheritance: AFlowNode
Afficher le fichier Open project: marekdaniluk/lab

Méthodes publiques

Méthode Description
AddNode ( ANode node ) : bool

Adds new node as child. There can be only one child for SucceederNode, so child will be overriden.

DebugRun ( AiBlackboard parameters, IList trees, int level, int nodeIndex ) : bool

Runs debug this node.

GetNode ( int i ) : ANode

Gets child node.

RemoveNode ( ANode node ) : bool

Removes child node.

Run ( AiBlackboard parameters, IList trees, List tasks ) : bool

Runs this node.

Method Details

AddNode() public méthode

Adds new node as child. There can be only one child for SucceederNode, so child will be overriden.
public AddNode ( ANode node ) : bool
node ANode Node to be added as a child.
Résultat bool

DebugRun() public méthode

Runs debug this node.
public DebugRun ( AiBlackboard parameters, IList trees, int level, int nodeIndex ) : bool
parameters AiBlackboard AiBlackboard with global parameters.
trees IList Readonly list with all ai trees.
level int Level of how deep we are in this AiTree.
nodeIndex int Index of current node in parent's node. If this is root, nodeIndex is 0.
Résultat bool

GetNode() public méthode

Gets child node.
public GetNode ( int i ) : ANode
i int Index of child node to get. SucceederNode has one child node, so only 0 will work.
Résultat ANode

RemoveNode() public méthode

Removes child node.
public RemoveNode ( ANode node ) : bool
node ANode Child node to be removed.
Résultat bool

Run() public méthode

Runs this node.
public Run ( AiBlackboard parameters, IList trees, List tasks ) : bool
parameters AiBlackboard AiBlackboard with global parameters.
trees IList Readonly list with all ai trees.
tasks List List of task scripts to bind with task nodes.
Résultat bool