Frame / SView / Commands / ExplosionCommand
Class: ExplosionCommand
SView.Commands.ExplosionCommand
Memberof
SView.Commands @description: 爆炸命令
Hierarchy
-
↳
ExplosionCommand
Table of contents
Constructors
Properties
- description
- executedHandleMode
- frame
- inputParas
- isCanAbort
- isDisplayView
- isInterruptible
- isParametersComplete
- isPreView
- isShowLoadingDialog
- name
- outputParas
- paraInit
- priority
- scene
- state
- type
- view
- ExplosionLevel
- ExplosionModel
- ExplosionType
- ExplosionValue
Methods
- apply
- cancel
- clear
- close
- doPreview
- execute
- executeExplosion
- existValidParameters
- getConfigData
- getDescription
- getExecutedHandleMode
- getInputParas
- getIsCanAbort
- getIsDisplayView
- getIsInterruptible
- getIsParametersComplete
- getIsPreView
- getIsShowLoadingDialog
- getName
- getOutputParas
- getPriority
- getScene
- getState
- getView
- interrupt
- isShowView
- onClearPreview
- onExecute
- onExecuted
- preview
- release
- reset
- resume
- setExecutedHandleMode
- setInputParas
- setIsCanAbort
- setIsDisplayView
- setIsInterruptible
- setIsParametersComplete
- setIsPreView
- setIsShowLoadingDialog
- setName
- setOutputParas
- setPriority
- setScene
- setState
- setView
- touchHandle
- undo
Constructors
constructor
• new ExplosionCommand(frame
, name
, type
, priority
): ExplosionCommand
Parameters
Name | Type | Description |
---|---|---|
frame | any | Frame对象 |
name | any | 命令名称 |
type | any | 类型 |
priority | any | 优先级 |
Returns
Description
Creates an instance of SCommand.
Inherited from
• new ExplosionCommand(frame
, name
): ExplosionCommand
Parameters
Name | Type | Description |
---|---|---|
frame | any | Frame对象 |
name | any | 命令名称 |
Returns
Description
Creates an instance of SCommand.
Inherited from
• new ExplosionCommand(name
): ExplosionCommand
Parameters
Name | Type | Description |
---|---|---|
name | any | 命令名称 |
Returns
Description
Creates an instance of SCommand.
Inherited from
Properties
description
• description: string
Inherited from
executedHandleMode
• executedHandleMode: ExecutedHandleMode
Inherited from
frame
• frame: FrameMain
Inherited from
inputParas
• inputParas: CommandParameters
Inherited from
isCanAbort
• isCanAbort: boolean
Inherited from
isDisplayView
• isDisplayView: boolean
Inherited from
isInterruptible
• isInterruptible: boolean
Inherited from
isParametersComplete
• isParametersComplete: boolean
Inherited from
isPreView
• isPreView: boolean
Inherited from
isShowLoadingDialog
• isShowLoadingDialog: boolean
Inherited from
name
• name: string
Inherited from
outputParas
• outputParas: CommandParameters
Inherited from
paraInit
• paraInit: boolean
= false
priority
• priority: CommandPriority
Inherited from
scene
• scene: Scene
Inherited from
state
• state: CommandState
Inherited from
type
• type: number
Inherited from
view
• view: SCommandView
Inherited from
ExplosionLevel
▪ Static
Readonly
ExplosionLevel: "ExplosionLevel"
ExplosionModel
▪ Static
Readonly
ExplosionModel: "ExplosionModel"
ExplosionType
▪ Static
Readonly
ExplosionType: "ExplosionType"
ExplosionValue
▪ Static
Readonly
ExplosionValue: "ExplosionValue"
Methods
apply
▸ apply(): number
Returns
number
Description
应用
Inherited from
cancel
▸ cancel(): void
Returns
void
Description
取消
Memberof
SCommand
Inherited from
clear
▸ clear(): number
Returns
number
Description
清空
Inherited from
close
▸ close(): void
Returns
void
Description
关闭
Inherited from
doPreview
▸ doPreview(): number
Returns
number
Description
执行预览
Inherited from
execute
▸ execute(executeAll?
): number
Parameters
Name | Type |
---|---|
executeAll? | boolean |
Returns
number
Description
执行
Inherited from
executeExplosion
▸ executeExplosion(): CommandExecuteResult
Returns
Description
执行爆炸
existValidParameters
▸ existValidParameters(): boolean
Returns
boolean
Description
是否存在有效参数
Inherited from
getConfigData
▸ getConfigData(): number
Returns
number
Description
获取配置中的命令信息
Inherited from
getDescription
▸ getDescription(): string
Returns
string
Description
获取命令描述
Inherited from
getExecutedHandleMode
▸ getExecutedHandleMode(): ExecutedHandleMode
Returns
Description
获取执行模式
Inherited from
SCommand.getExecutedHandleMode
getInputParas
▸ getInputParas(): CommandParameters
Returns
Description
获取参数
Overrides
getIsCanAbort
▸ getIsCanAbort(): boolean
Returns
boolean
Description
是否可以中止
Inherited from
getIsDisplayView
▸ getIsDisplayView(): boolean
Returns
boolean
Description
是否显示View
Inherited from
getIsInterruptible
▸ getIsInterruptible(): boolean
Returns
boolean
Description
获取是否可被中断
Inherited from
getIsParametersComplete
▸ getIsParametersComplete(): boolean
Returns
boolean
Description
获取参数是否完整 ,如果本次爆炸参数与上一次完全一致,则也认为参数不完整,以此终止命令执行
Overrides
SCommand.getIsParametersComplete
getIsPreView
▸ getIsPreView(): boolean
Returns
boolean
Description
获取命令是否预显
Inherited from
getIsShowLoadingDialog
▸ getIsShowLoadingDialog(): boolean
Returns
boolean
Description
是否显示加载对话框
Inherited from
SCommand.getIsShowLoadingDialog
getName
▸ getName(): string
Returns
string
Description
获取命令名称
Inherited from
getOutputParas
▸ getOutputParas(): CommandParameters
Returns
Description
获取输出参数
Inherited from
getPriority
▸ getPriority(): CommandPriority
Returns
Description
获取命令优先级
Inherited from
getScene
▸ getScene(): Scene
Returns
Scene
Description
获取scene
Inherited from
getState
▸ getState(): CommandState
Returns
Description
获取命令状态
Inherited from
getView
▸ getView(): SCommandView
Returns
Description
获取view
Inherited from
interrupt
▸ interrupt(): CommandExecuteResult
Returns
Description
中断当前命令
Inherited from
isShowView
▸ isShowView(): boolean
Returns
boolean
Description
判断是否需要显示面板
Inherited from
onClearPreview
▸ onClearPreview(): void
Returns
void
Description
清空预览
Inherited from
onExecute
▸ onExecute(): number
Returns
number
执行结果
Description
命令执行
Overrides
SView.SCommand.onExecute
onExecuted
▸ onExecuted(): number
Returns
number
Description
业务逻辑执行完毕后
Overrides
preview
▸ preview(): number
Returns
number
Description
预览
Inherited from
release
▸ release(): boolean
Returns
boolean
Description
释放
Inherited from
reset
▸ reset(): void
Returns
void
Description
重置命令
resume
▸ resume(): number
Returns
number
Description
恢复命名
Inherited from
setExecutedHandleMode
▸ setExecutedHandleMode(value
): void
Parameters
Name | Type |
---|---|
value | any |
Returns
void
Description
设置执行模式
Inherited from
SCommand.setExecutedHandleMode
setInputParas
▸ setInputParas(value
): void
Parameters
Name | Type |
---|---|
value | CommandParameters |
Returns
void
Description
设置输入参数
Inherited from
setIsCanAbort
▸ setIsCanAbort(value
): void
Parameters
Name | Type |
---|---|
value | any |
Returns
void
Description
设置是否可以中止
Inherited from
setIsDisplayView
▸ setIsDisplayView(value
): void
Parameters
Name | Type |
---|---|
value | any |
Returns
void
Description
设置是否显示View
Inherited from
setIsInterruptible
▸ setIsInterruptible(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Description
设置是否可被中断
Inherited from
setIsParametersComplete
▸ setIsParametersComplete(value
): void
Parameters
Name | Type |
---|---|
value | any |
Returns
void
Description
参数是否完整
Inherited from
SCommand.setIsParametersComplete
setIsPreView
▸ setIsPreView(value
): void
@description: 设置命令是否预显
Parameters
Name | Type | Description |
---|---|---|
value | boolean | :0不预显,1预显 |
Returns
void
Inherited from
setIsShowLoadingDialog
▸ setIsShowLoadingDialog(value
): void
Parameters
Name | Type |
---|---|
value | any |
Returns
void
Description
设置是否显示加载对话框
Inherited from
SCommand.setIsShowLoadingDialog
setName
▸ setName(value
): void
Parameters
Name | Type |
---|---|
value | string |
Returns
void
Description
设置命令名称
Inherited from
setOutputParas
▸ setOutputParas(value
): void
Parameters
Name | Type |
---|---|
value | CommandParameters |
Returns
void
Description
设置输出参 数
Inherited from
setPriority
▸ setPriority(value
): void
Parameters
Name | Type |
---|---|
value | any |
Returns
void
Description
设置命令优先级