Arbor: State Diagram Editor  2.2.0
State Class Reference

ステートを表すクラス More...

Inheritance diagram for State:
Node

Public Member Functions

 State (ArborFSMInternal stateMachine, int nodeID, bool resident)
 ステートの生成はArborFSMInternal.CreateStateを使用してください。 More...
 
void AddBehaviour (StateBehaviour behaviour)
 StateBehaviourを追加。 More...
 
StateBehaviour AddBehaviour (System.Type type)
 StateBehaviourを追加。 More...
 
AddBehaviour< T > ()
 StateBehaviourを追加。 More...
 
StateBehaviour InsertBehaviour (int index, System.Type type)
 StateBehaviourを挿入。 More...
 
InsertBehaviour< T > (int index, System.Type type)
 StateBehaviourを追加。 More...
 
StateBehaviour GetBehaviourFromIndex (int index)
 StateBehaviourをindexから取得。 More...
 
Object GetBehaviourObjectFromIndex (int index)
 StateBehaviourのObjectをindexから取得。 More...
 
StateBehaviour GetBehaviour (System.Type type)
 StateBehaviourを取得。 More...
 
GetBehaviour< T > ()
 StateBehaviourを取得。 More...
 
StateBehaviour[] GetBehaviours (System.Type type)
 StateBehaviourを取得。 More...
 
T[] GetBehaviours< T > ()
 StateBehaviourを取得。 More...
 
bool Contains (StateBehaviour behaviour)
 StateBehaviourが含まれているかどうか。 More...
 
void RemoveBehaviour (Object behaviourObj)
 StateBehaviourを削除する。インスタンスは削除されないため、StateBehaviour.Destroyを使用すること。 More...
 
void SwapBehaviour (int fromIndex, int toIndex)
 StateBehaviourの順番を入れ替える。 More...
 
void MoveBehaviour (int fromIndex, int toIndex)
 StateBehaviourの順番を移動する。 More...
 
delegate Object InstanceIDToObject (int instanceID)
 Editor用。 More...
 
void ForceRebuild (InstanceIDToObject instanceIDToObject)
 Editor用。 More...
 
void Move (ArborFSMInternal stateMachine)
 Editor用。 More...
 
void DisconnectState (int stateID)
 内部処理用。 More...
 
void DestroyBehaviour (Object behaviourObj)
 
void DestroyBehaviours ()
 内部処理用。 More...
 
void DestroySubComponents ()
 内部処理用。 More...
 
void SetHideFlags (HideFlags hideFlags)
 内部処理用。 More...
 
bool IsStateMachine (ArborFSMInternal stateMachine)
 内部処理用。 More...
 
void EnableState (bool enable, bool changeState)
 内部処理用。 More...
 
void SendTrigger (string message)
 トリガーメッセージを送信する。StateBehaviour.OnStateTriggerが呼び出される。 More...
 
- Public Member Functions inherited from Node
 Node (ArborFSMInternal stateMachine, int nodeID)
 

Public Attributes

string name = "New State"
 ステートの名前。 More...
 
- Public Attributes inherited from Node
Rect position
 Arbor Editor上での位置。 More...
 
bool showComment
 コメントを表示するかどうか More...
 
string nodeComment
 コメント More...
 

Properties

StateBehaviour[] behaviours [get]
 
int behaviourCount [get]
 Behaviourの数を取得。 More...
 
int stateID [get]
 ステートIDを取得。 More...
 
bool resident [get]
 常駐するStateかどうかを取得。 More...
 
bool breakPoint [get, set]
 
int transitionCount [get, set]
 
- Properties inherited from Node
ArborFSMInternal stateMachine [get]
 FSMを取得。 More...
 
int nodeID [get]
 ノードIDを取得。 More...
 

Additional Inherited Members

- Protected Attributes inherited from Node
ArborFSMInternal _StateMachine
 
int _NodeID
 

Detailed Description

ステートを表すクラス

Constructor & Destructor Documentation

State ( ArborFSMInternal  stateMachine,
int  nodeID,
bool  resident 
)

ステートの生成はArborFSMInternal.CreateStateを使用してください。

Member Function Documentation

void AddBehaviour ( StateBehaviour  behaviour)

StateBehaviourを追加。

Parameters
behaviour追加するStateBehaviour
StateBehaviour AddBehaviour ( System.Type  type)

StateBehaviourを追加。

Parameters
type追加するStateBehaviourの型
Returns
追加したStateBehaviour
T AddBehaviour< T > ( )

StateBehaviourを追加。

Template Parameters
T追加するStateBehaviourの型
Returns
追加したStateBehaviour
Type Constraints
T :StateBehaviour 
bool Contains ( StateBehaviour  behaviour)

StateBehaviourが含まれているかどうか。

Parameters
behaviour判定するStateBehaviour。
Returns
含まれているかどうか。
void DestroyBehaviour ( Object  behaviourObj)
void DestroyBehaviours ( )

内部処理用。

void DestroySubComponents ( )

内部処理用。

void DisconnectState ( int  stateID)

内部処理用。

void EnableState ( bool  enable,
bool  changeState 
)

内部処理用。

void ForceRebuild ( InstanceIDToObject  instanceIDToObject)

Editor用。

StateBehaviour GetBehaviour ( System.Type  type)

StateBehaviourを取得。

Parameters
type取得したいStateBehaviourの型。
Returns
見つかったStateBehaviour。ない場合はnull。
T GetBehaviour< T > ( )

StateBehaviourを取得。

Template Parameters
T取得したいStateBehaviourの型。
Returns
見つかったStateBehaviour。ない場合はnull。
Type Constraints
T :StateBehaviour 
StateBehaviour GetBehaviourFromIndex ( int  index)

StateBehaviourをindexから取得。

Parameters
indexインデックス
Returns
StateBehaviour
Object GetBehaviourObjectFromIndex ( int  index)

StateBehaviourのObjectをindexから取得。

Parameters
indexインデックス
Returns
Object
StateBehaviour [] GetBehaviours ( System.Type  type)

StateBehaviourを取得。

Parameters
type取得したいStateBehaviourの型。
Returns
見つかったStateBehaviourの配列。
T [] GetBehaviours< T > ( )

StateBehaviourを取得。

Template Parameters
T取得したいStateBehaviourの型。
Returns
見つかったStateBehaviourの配列。
Type Constraints
T :StateBehaviour 
StateBehaviour InsertBehaviour ( int  index,
System.Type  type 
)

StateBehaviourを挿入。

Parameters
index挿入先インデックス
type追加するStateBehaviourの型
Returns
挿入したStateBehaviour
T InsertBehaviour< T > ( int  index,
System.Type  type 
)

StateBehaviourを追加。

Template Parameters
T挿入するStateBehaviourの型
Parameters
index挿入先インデックス
Returns
挿入したStateBehaviour
Type Constraints
T :StateBehaviour 
delegate Object InstanceIDToObject ( int  instanceID)

Editor用。

bool IsStateMachine ( ArborFSMInternal  stateMachine)

内部処理用。

void Move ( ArborFSMInternal  stateMachine)

Editor用。

void MoveBehaviour ( int  fromIndex,
int  toIndex 
)

StateBehaviourの順番を移動する。

Parameters
fromIndex移動させたいインデックス。
toIndex移動先のインデックス。
void RemoveBehaviour ( Object  behaviourObj)

StateBehaviourを削除する。インスタンスは削除されないため、StateBehaviour.Destroyを使用すること。

Parameters
behaviourObj削除するStateBehaviour。
void SendTrigger ( string  message)

トリガーメッセージを送信する。StateBehaviour.OnStateTriggerが呼び出される。

Parameters
message
void SetHideFlags ( HideFlags  hideFlags)

内部処理用。

void SwapBehaviour ( int  fromIndex,
int  toIndex 
)

StateBehaviourの順番を入れ替える。

Parameters
fromIndex入れ替えたいインデックス。
toIndex入れ替え先インデックス。

Member Data Documentation

string name = "New State"

ステートの名前。

Property Documentation

int behaviourCount
get

Behaviourの数を取得。

StateBehaviour [] behaviours
get
bool breakPoint
getset
bool resident
get

常駐するStateかどうかを取得。

int stateID
get

ステートIDを取得。

int transitionCount
getset