Packagekrewfw.builtin_actor.system
Classpublic class KrewSubState
InheritanceKrewSubState Inheritance KrewState Inheritance Object

一つの StateMachine に複数入れて使い回したいような State をつくる。 (state 名に自動生成した prefix をつける) 基本的に入りと出しか意識しないような使い方を想定しているが、 外の State から SubState 内の特定の state を指定したい場合は prefix を明示して SubState を new してほしい



Public Properties
 PropertyDefined By
 InheritedchildStates : Vector.<KrewState>
[read-only]
KrewState
 InheritedguardFunc : Function
[read-only]
KrewState
 InheritedisListening : Boolean = false
KrewState
 Inheritedkrew : KrewTopUtil
[read-only]
KrewState
 InheritedlistenList : Array
[read-only]
KrewState
 InheritednextStateId : String
KrewState
 InheritedonBeginHandler : Function
[read-only]
KrewState
 InheritedonEndHandler : Function
[read-only]
KrewState
 InheritedonEnterHandler : Function
[read-only]
KrewState
 InheritedonExitHandler : Function
[read-only]
KrewState
 InheritedonUpdateHandler : Function
[read-only]
KrewState
 InheritedparentState : KrewState
KrewState
 InheritedsharedObj : KrewSharedObjects
[read-only]
KrewState
 InheritedstateId : String
[read-only]
KrewState
 InheritedstateMachine : KrewStateMachine
[write-only]
KrewState
Public Methods
 MethodDefined By
  
KrewSubState(stateDef:Object, funcOwner:Object = null, prefix:String = null)
KrewSubState
 Inherited
addState(stateDef:*, funcOwner:Object = null, prefix:String):void
Add sub state.
KrewState
 Inherited
createActor(newActor:KrewActor, layerName:String = null):void
KrewState
 Inherited
delayed(timeout:Number, task:Function):void
KrewState
 Inherited
dispose():void
KrewState
 Inherited
dump():void
KrewState
 Inherited
dumpTree(level:int = 0):void
KrewState
 Inherited
eachChild(iterator:Function):void
Iterate state tree downward.
KrewState
 Inherited
eachParent(iterator:Function):void
Iterate state tree upward.
KrewState
 Inherited
hasChildren():Boolean
KrewState
 Inherited
hasParent():Boolean
KrewState
 Inherited
isChild(state:KrewState, nestCount:int = 0):Boolean
Return true if arg is my child state (grandchild is a child.)
KrewState
 Inherited
isEqual(state:KrewState):Boolean
Return true if arg is same state instance.
KrewState
 Inherited
makeState(stateDef:*, funcOwner:Object = null, prefix:String):KrewState
[static]
KrewState
 Inherited
onEvent(args:Object, event:String):void
イベントを受け取った際、 KrewStateMachine から呼ばれるハンドラ。 State は自分が listen しているイベントでなければ、親 state に委譲する。 自分が listen しているイベントだった場合でも、 guard に指定した function が false を返す間は、遷移を行わない。 guard を通過した際、hook が指定されていればそれに (state, eventArgs) を渡して呼ぶ。 その後、to に指定されていたステートへ遷移する
KrewState
 Inherited
proceed(state:KrewState = null):void
Go on the next state.
KrewState
 Inherited
sendMessage(eventType:String, eventArgs:Object = null):void
KrewState
Constructor Detail
KrewSubState()Constructor
public function KrewSubState(stateDef:Object, funcOwner:Object = null, prefix:String = null)



Parameters
stateDef:Object
 
funcOwner:Object (default = null)
 
prefix:String (default = null)