Arbor 3: FSM & BT Graph Editor  3.1.1
ActionNode Class Reference

アクションを実行するノード More...

Inheritance diagram for ActionNode:
TreeBehaviourNode TreeNodeBase INodeBehaviourContainer Node

Public Member Functions

 ActionNode (NodeGraph nodeGraph, int nodeID, System.Type classType)
 ActionNodeの生成はBehaviourTreeInternal.CreateAction(Vector2, System.Type)を使用してください。 More...
 
ActionBehaviour CreateActionBehaviour (System.Type classType)
 ActionBehaviourを作成する。エディタで使用する。 More...
 
override bool HasParentLinkSlot ()
 親へのNodeLinkSlotを持っているかどうか More...
 
override NodeLinkSlot GetParentLinkSlot ()
 親へのNodeLinkSlotを取得。 More...
 
override bool HasChildLinkSlot ()
 子へのNodeLinkSlotを持っているかどうか More...
 
override string GetName ()
 ノードの名前を取得 More...
 
- Public Member Functions inherited from TreeBehaviourNode
 TreeBehaviourNode (NodeGraph nodeGraph, int nodeID)
 TreeBehaviourNodeのコンストラクタ More...
 
Object GetBehaviourObject ()
 メインのBehaviourのObjectを取得。 More...
 
Decorator AddDecorator (System.Type type)
 Decoratorを追加。 More...
 
AddDecorator< T > ()
 Decoratorを追加。 More...
 
Decorator InsertDecorator (int index, System.Type type)
 Decoratorを挿入。 More...
 
InsertDecorator< T > (int index)
 Decoratorを挿入。 More...
 
Service AddService (System.Type type)
 Serviceを追加。 More...
 
AddService< T > ()
 Serviceを追加。 More...
 
Service InsertService (int index, System.Type type)
 Serviceを挿入。 More...
 
InsertService< T > (int index)
 Serviceを挿入。 More...
 
override bool IsContainsBehaviour (NodeBehaviour behaviour)
 NodeBehaviourを含んでいるかをチェックする。 More...
 
void DestroyAllBehaviour ()
 全てのBehaviourを破棄。 More...
 
- Public Member Functions inherited from TreeNodeBase
 TreeNodeBase (NodeGraph nodeGraph, int nodeID)
 TreeNodeBaseのコンストラクタ More...
 
override bool IsDeletable ()
 削除できるかどうかを返す。 More...
 
override string ToString ()
 ノードを文字列に変換(デバッグ用)。 More...
 
- Public Member Functions inherited from Node
 Node (NodeGraph nodeGraph, int nodeID)
 Nodeのコンストラクタ More...
 
override string ToString ()
 ノードを文字列に変換(デバッグ用)。 More...
 

Public Attributes

NodeLinkSlot parentLink = new NodeLinkSlot()
 親ノードへのリンク More...
 
string name = "New Action"
 ノード名。 More...
 
- Public Attributes inherited from Node
Rect position
 Arbor Editor上での位置。 More...
 
bool showComment
 コメントを表示するかどうか More...
 
string nodeComment
 コメント More...
 

Protected Member Functions

override void OnExecute ()
 実行する際に呼ばれる。 More...
 
- Protected Member Functions inherited from TreeBehaviourNode
override void OnGraphChanged ()
 Nodeが所属するNodeGraphが変わった際に呼ばれる。 More...
 
void SetBehaviour (TreeNodeBehaviour behaviour)
 メインのBehaviourを設定 More...
 

Additional Inherited Members

- Properties inherited from TreeBehaviourNode
TreeNodeBehaviour behaviour [get]
 メインのBehaviour More...
 
DecoratorList decoratorList [get]
 Decoratorのリスト More...
 
ServiceList serviceList [get]
 Serviceのリスト More...
 
- Properties inherited from TreeNodeBase
bool enablePriority [get]
 ルートノードから辿って接続されていればtrueを返す。 More...
 
int priority [get]
 ノードの優先順位。 More...
 
BehaviourTreeInternal behaviourTree [get]
 ビヘイビアツリーを取得。 More...
 
TreeNodeBase parentNode [get]
 親ノードを取得。 More...
 
NodeStatus status [get]
 ノードの状態。 More...
 
bool isActive [get]
 アクティブならtrueを返す。 More...
 
- Properties inherited from Node
NodeGraph nodeGraph [get]
 NodeGraphを取得。 More...
 
int nodeID [get]
 ノードIDを取得。 More...
 

Detailed Description

アクションを実行するノード

Constructor & Destructor Documentation

ActionNode ( NodeGraph  nodeGraph,
int  nodeID,
System.Type  classType 
)

ActionNodeの生成はBehaviourTreeInternal.CreateAction(Vector2, System.Type)を使用してください。

Member Function Documentation

ActionBehaviour CreateActionBehaviour ( System.Type  classType)

ActionBehaviourを作成する。エディタで使用する。

override string GetName ( )
virtual

ノードの名前を取得

Returns
ノードの名前

Reimplemented from Node.

override NodeLinkSlot GetParentLinkSlot ( )
virtual

親へのNodeLinkSlotを取得。

Returns
親へのNodeLinkSlot

Reimplemented from TreeNodeBase.

override bool HasChildLinkSlot ( )
virtual

子へのNodeLinkSlotを持っているかどうか

Returns
持っている場合はtrue、なければfalse。

Implements TreeNodeBase.

override bool HasParentLinkSlot ( )
virtual

親へのNodeLinkSlotを持っているかどうか

Returns
持っている場合はtrue、なければfalse。

Implements TreeNodeBase.

override void OnExecute ( )
protectedvirtual

実行する際に呼ばれる。

Implements TreeNodeBase.

Member Data Documentation

string name = "New Action"

ノード名。

NodeLinkSlot parentLink = new NodeLinkSlot()

親ノードへのリンク