|
Arbor 3: FSM & BT Graph Editor
3.7.8
|
ステートを表すクラス [詳解]
公開メンバ関数 | |
| State (ArborFSMInternal stateMachine, int nodeID, bool resident) | |
| Stateのコンストラクタ [詳解] | |
| void | AddBehaviour (StateBehaviour behaviour) |
| StateBehaviourを追加。 [詳解] | |
| StateBehaviour | AddBehaviour (System.Type type) |
| StateBehaviourを追加。 [詳解] | |
| T | AddBehaviour< T > () |
| StateBehaviourを追加。 [詳解] | |
| void | InsertBehaviour (int index, StateBehaviour behaviour) |
| StateBehaviourを挿入。 [詳解] | |
| StateBehaviour | InsertBehaviour (int index, System.Type type) |
| StateBehaviourを挿入。 [詳解] | |
| T | InsertBehaviour< T > (int index) |
| StateBehaviourを追加。 [詳解] | |
| StateBehaviour | GetBehaviourFromIndex (int index) |
| StateBehaviourをindexから取得。 [詳解] | |
| Object | GetBehaviourObjectFromIndex (int index) |
| StateBehaviourのObjectをindexから取得。 [詳解] | |
| StateBehaviour | GetBehaviour (System.Type type) |
| StateBehaviourを取得。 [詳解] | |
| T | GetBehaviour< T > () |
| StateBehaviourを取得。 [詳解] | |
| StateBehaviour[] | GetBehaviours (System.Type type) |
| StateBehaviourを取得。 [詳解] | |
| T[] | GetBehaviours< T > () |
| StateBehaviourを取得。 [詳解] | |
| bool | Contains (StateBehaviour behaviour) |
| StateBehaviourが含まれているかどうか。 [詳解] | |
| int | IndexOfBehaviour (Object behaviourObj) |
| StateBehaviourのインデックスを返す。 [詳解] | |
| void | RemoveBehaviour (Object behaviourObj) |
| StateBehaviourを削除する。インスタンスは削除されないため、StateBehaviour.Destroyを使用すること。 [詳解] | |
| void | RemoveBehaviourAt (int behaviourIndex) |
| StateBehaviourを削除する。インスタンスは削除されないため、StateBehaviour.Destroyを使用すること。 [詳解] | |
| void | SwapBehaviour (int fromIndex, int toIndex) |
| StateBehaviourの順番を入れ替える。 [詳解] | |
| void | MoveBehaviour (int fromIndex, State toState, int toIndex) |
| StateBehaviourの順番を移動する。 [詳解] | |
| void | SetBehaviour (int index, StateBehaviour behaviour) |
| StateBehaviourを設定する。 [詳解] | |
| override bool | IsContainsBehaviour (NodeBehaviour behaviour) |
| NodeBehaviourを含んでいるかをチェックする。 [詳解] | |
| void | DisconnectState (int stateID) |
| 内部処理用。 [詳解] | |
| void | DestroyBehaviour (Object behaviourObj) |
| StateBehaviourを破棄する。 [詳解] | |
| void | DestroyBehaviourAt (int behaviourIndex) |
| StateBehaviourを破棄する。 [詳解] | |
| void | DestroyBehaviours () |
| 内部処理用。 [詳解] | |
| void | UpdateBehaviours () |
| 内部処理用。 [詳解] | |
| void | LateUpdateBehaviours () |
| 内部処理用。 [詳解] | |
| void | SendTrigger (string message) |
| トリガーメッセージを送信する。StateBehaviour.OnStateTriggerが呼び出される。 [詳解] | |
| override string | GetName () |
| ノードの名前を取得 [詳解] | |
基底クラス Node に属する継承公開メンバ関数 | |
| Node (NodeGraph nodeGraph, int nodeID) | |
| Nodeのコンストラクタ [詳解] | |
| virtual bool | IsDeletable () |
| 削除できるかどうかを返す。 [詳解] | |
| override string | ToString () |
| ノードを文字列に変換(デバッグ用)。 [詳解] | |
公開変数類 | |
| string | name = "New State" |
| ステートの名前。 [詳解] | |
基底クラス Node に属する継承公開変数類 | |
| Rect | position |
| Arbor Editor上での位置。 [詳解] | |
| bool | showComment |
| コメントを表示するかどうか [詳解] | |
| string | nodeComment |
| コメント [詳解] | |
限定公開メンバ関数 | |
| override void | OnGraphChanged () |
| Nodeが所属するNodeGraphが変わった際に呼ばれる。 [詳解] | |
プロパティ | |
| ArborFSMInternal | stateMachine [get] |
| FSMを取得。 [詳解] | |
| StateBehaviour[] | behaviours [get] |
| 非推奨。behaviourCountとGetBehaviourFromIndexを使用して下さい。 [詳解] | |
| int | behaviourCount [get] |
| Behaviourの数を取得。 [詳解] | |
| int | stateID [get] |
| ステートIDを取得。 [詳解] | |
| bool | resident [get] |
| 常駐するStateかどうかを取得。 [詳解] | |
| bool | breakPoint [get, set] |
| Break point. [詳解] | |
| uint | transitionCount [get, set] |
| 遷移回数。 [詳解] | |
基底クラス Node に属する継承プロパティ | |
| NodeGraph | nodeGraph [get] |
| NodeGraphを取得。 [詳解] | |
| int | nodeID [get] |
| ノードIDを取得。 [詳解] | |
ステートを表すクラス
| State | ( | ArborFSMInternal | stateMachine, |
| int | nodeID, | ||
| bool | resident | ||
| ) |
Stateのコンストラクタ
| stateMachine | このノードを持つステートマシン |
| nodeID | ノードID |
| resident | 常駐ステート |
ステートの生成はArborFSMInternal.CreateState(bool)を使用してください。
| void AddBehaviour | ( | StateBehaviour | behaviour | ) |
StateBehaviourを追加。
| behaviour | 追加するStateBehaviour |
| StateBehaviour AddBehaviour | ( | System.Type | type | ) |
StateBehaviourを追加。
| type | 追加するStateBehaviourの型 |
| T AddBehaviour< T > | ( | ) |
StateBehaviourを追加。
| T | 追加するStateBehaviourの型 |
| T | : | StateBehaviour |
| bool Contains | ( | StateBehaviour | behaviour | ) |
StateBehaviourが含まれているかどうか。
| behaviour | 判定するStateBehaviour。 |
| void DestroyBehaviour | ( | Object | behaviourObj | ) |
StateBehaviourを破棄する。
| behaviourObj | 破棄したいStateBehaviour. |
| void DestroyBehaviourAt | ( | int | behaviourIndex | ) |
StateBehaviourを破棄する。
| behaviourIndex | 破棄したいStateBehaviourのインデックス。 |
| void DestroyBehaviours | ( | ) |
内部処理用。
| void DisconnectState | ( | int | stateID | ) |
内部処理用。
| StateBehaviour GetBehaviour | ( | System.Type | type | ) |
StateBehaviourを取得。
| type | 取得したいStateBehaviourの型。 |
| T GetBehaviour< T > | ( | ) |
StateBehaviourを取得。
| T | 取得したいStateBehaviourの型。 |
| T | : | StateBehaviour |
| StateBehaviour GetBehaviourFromIndex | ( | int | index | ) |
| Object GetBehaviourObjectFromIndex | ( | int | index | ) |
StateBehaviourのObjectをindexから取得。
| index | インデックス |
| StateBehaviour [] GetBehaviours | ( | System.Type | type | ) |
StateBehaviourを取得。
| type | 取得したいStateBehaviourの型。 |
| T [] GetBehaviours< T > | ( | ) |
StateBehaviourを取得。
| T | 取得したいStateBehaviourの型。 |
| T | : | StateBehaviour |
|
virtual |
| int IndexOfBehaviour | ( | Object | behaviourObj | ) |
StateBehaviourのインデックスを返す。
| behaviourObj | 検索するStateBehaviour |
| void InsertBehaviour | ( | int | index, |
| StateBehaviour | behaviour | ||
| ) |
StateBehaviourを挿入。
| index | 挿入先インデックス |
| behaviour | 挿入するStateBehaviour |
| StateBehaviour InsertBehaviour | ( | int | index, |
| System.Type | type | ||
| ) |
StateBehaviourを挿入。
| index | 挿入先インデックス |
| type | 追加するStateBehaviourの型 |
| T InsertBehaviour< T > | ( | int | index | ) |
StateBehaviourを追加。
| T | 挿入するStateBehaviourの型 |
| index | 挿入先インデックス |
| T | : | StateBehaviour |
|
virtual |
NodeBehaviourを含んでいるかをチェックする。
| behaviour | チェックするNodeBehaviour |
Nodeを再実装しています。
| void LateUpdateBehaviours | ( | ) |
内部処理用。
| void MoveBehaviour | ( | int | fromIndex, |
| State | toState, | ||
| int | toIndex | ||
| ) |
StateBehaviourの順番を移動する。
| fromIndex | 移動させたいインデックス。 |
| toState | 移動先のState。 |
| toIndex | 移動先のインデックス。 |
|
protectedvirtual |
Nodeが所属するNodeGraphが変わった際に呼ばれる。
Nodeを再実装しています。
| void RemoveBehaviour | ( | Object | behaviourObj | ) |
StateBehaviourを削除する。インスタンスは削除されないため、StateBehaviour.Destroyを使用すること。
| behaviourObj | 削除するStateBehaviour。 |
| void RemoveBehaviourAt | ( | int | behaviourIndex | ) |
StateBehaviourを削除する。インスタンスは削除されないため、StateBehaviour.Destroyを使用すること。
| behaviourIndex | 削除するStateBehaviourのインデックス。 |
| void SendTrigger | ( | string | message | ) |
トリガーメッセージを送信する。StateBehaviour.OnStateTriggerが呼び出される。
| message | 送信するメッセージ |
| void SetBehaviour | ( | int | index, |
| StateBehaviour | behaviour | ||
| ) |
StateBehaviourを設定する。
| index | インデックス |
| behaviour | StateBehaviour |
元のStateBehaviourは破棄しないため注意。 StateBehaviourを追加したい場合はAddBehaviourを使用して下さい。 また、破棄したい場合はDestroyBehaviourを使用して下さい。
| void SwapBehaviour | ( | int | fromIndex, |
| int | toIndex | ||
| ) |
StateBehaviourの順番を入れ替える。
| fromIndex | 入れ替えたいインデックス。 |
| toIndex | 入れ替え先インデックス。 |
| void UpdateBehaviours | ( | ) |
内部処理用。
| string name = "New State" |
ステートの名前。
|
get |
Behaviourの数を取得。
|
get |
非推奨。behaviourCountとGetBehaviourFromIndexを使用して下さい。
|
getset |
Break point.
When this property is true, the editor is in a pause state at the timing of entering the state.
|
get |
常駐するStateかどうかを取得。
|
get |
ステートIDを取得。
|
get |
FSMを取得。
|
getset |
遷移回数。