Skip to content

@ue-too/board-game-engine / index / GenericAction

クラス: GenericAction ​

定義: action-system/action.ts:11

実装 ​

コンストラクター ​

コンストラクター ​

new GenericAction(type, actor, targets, parameters, preconditions, costs, effects): GenericAction

定義: action-system/action.ts:21

パラメータ ​

type ​

string

actor ​

number

targets ​

number[]

parameters ​

Record<string, unknown>

preconditions ​

Precondition[]

costs ​

Effect[]

effects ​

Effect[]

戻り値 ​

GenericAction

プロパティ ​

actor ​

actor: number

定義: action-system/action.ts:13


costs ​

costs: Effect[] = []

定義: action-system/action.ts:17


effects ​

effects: Effect[] = []

定義: action-system/action.ts:18


parameters ​

parameters: Record<string, unknown>

定義: action-system/action.ts:15


preconditions ​

preconditions: Precondition[]

定義: action-system/action.ts:16


targets ​

targets: number[]

定義: action-system/action.ts:14


type ​

type: string

定義: action-system/action.ts:12

の実装 ​

Action.type

メソッド ​

canExecute() ​

canExecute(): boolean

定義: action-system/action.ts:39

戻り値 ​

boolean


execute() ​

execute(): Event[]

定義: action-system/action.ts:43

戻り値 ​

Event[]