C# 클래스 lab.AiTree

파일 보기 프로젝트 열기: marekdaniluk/lab 1 사용 예제들

공개 메소드들

메소드 설명
AddNode ( ANode node ) : bool

Adds new node to this AiTree.

ConnectNodes ( AFlowNode from, ANode to ) : bool

Creates connection between one node to another. The connection is one one-way and tries to prevent circular to prevent infinity loops.

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

Runs debug this tree behaviour.

RemoveNode ( ANode node ) : bool

Removes node from this AiTree. Also removes all connections between other nodes, so it doesn't have to be done manually.

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

Runs this tree behaviour.

비공개 메소드들

메소드 설명
IsConnected ( AFlowNode from, AFlowNode to ) : bool

메소드 상세

AddNode() 공개 메소드

Adds new node to this AiTree.
public AddNode ( ANode node ) : bool
node ANode A node to add to this AiTree.
리턴 bool

ConnectNodes() 공개 메소드

Creates connection between one node to another. The connection is one one-way and tries to prevent circular to prevent infinity loops.
public ConnectNodes ( AFlowNode from, ANode to ) : bool
from AFlowNode A node that is higher in hierarchy.
to ANode A node that is lower in hierarchy.
리턴 bool

DebugRun() 공개 메소드

Runs debug this tree behaviour.
public DebugRun ( AiBlackboard parameters, IList trees, int level ) : 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.
리턴 bool

RemoveNode() 공개 메소드

Removes node from this AiTree. Also removes all connections between other nodes, so it doesn't have to be done manually.
public RemoveNode ( ANode node ) : bool
node ANode A node to remove from this AiTree.
리턴 bool

Run() 공개 메소드

Runs this tree behaviour.
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.
리턴 bool