Optional
_actionOptional
_onRun when all runners were removed in updateRunners Use in setActionPattern to shift action-bundles 更新・解除を都度忘れないこと
Optional
children[en] DESC
[jp] 指定したアクションを組み込んだrunnerを追加
アクションは直列処理される。 ただし配列(RunnerActionList型)で渡すとそのアクション群は並列処理される
// 以下のアクションを直列処理
actor.addActionRunner(
act1,
[act2_1, act2_2], // act2_1とact2_2は同時(並列)処理,
act3
)
生成したRunnerを返す
Rest
...actions: RunnerActionComplex<RunnerDrivenClass>[]可変長引数
[en] Add (initialized) Runner
[jp] Runnerを(初期化した後に)追加
全Runnerを除去
指定runnerを除去
Actionバンドルを切り替えながら繰り返す 中ボス・ボスの複雑な行動パターンの設定に使用
// TODO
Rest
...actionBundles: RunnerActionBundle<RunnerDrivenClass>[]可変長引数でActionBundleを順番にセット
指定アクションを実行するrunnerを設定。 addActionRunnerと違い、過去セット済みのrunnerは消去され、単一のrunnerのみをセット
生成したRunnerを返す
Rest
...actions: RunnerActionComplex<RunnerDrivenClass>[]setActionPattern See RunnerDrivenClass.prototype.setActionPattern
Rest
...params: RunnerActionBundle<RunnerDrivenClass>[][jp] 並列処理される複数のRunnerを設定, 設定分だけのRunner配列を返す
本体がうろうろしながら+画面中に弾をあちこち出す、 みたいな複雑なパターンを一括設定する際に有効
setActionRunnerと似た引数を受けるが、直列・並列の扱いが逆
actor.setParallelActionRunners([
action1,
[action2_1, action2_2], // 2_1 -> 2_2で直列処理される
action3
])
要素がRunnerActionList型の場合、直列処理として扱われる
既存Runnerを一掃するかどうか。既定はtrue
[en] Sets Runner which runs actions parallel
[jp] アクションを並列処理するRunnerを設定する
// Each thread runs simultaniously
actor.setParallelActionRunner(
[
// Thread_1
action1,
// Thread_2: serial
// 2_1 -> 2_2)
[action2_1, action2_2],
// Thread_3: serial+parallel
// action3_1 -> (action3_2_1 + action3_2_2)
[
action3_1,
[action3_2_1, action3_2_2]
],
],
{ endType: "any" } // Kills whole action when any of the thread is over
)
Runner instance
action options
Static
Private
combinePrivate
Combine RunnerActionList to one RunnerAction
RunnerActions to combine. These actions will run parallel
Runner instance to bind "this" of actions
Generated using TypeDoc
RunnerDriven化class型 型定義用