avalon
0.0.1-SNAPSHOT
      Target filter
Search in API
Skip to content
    avalon
avalon-game-battle-engine/io.github.lishangbu.avalon.game.battle.engine.core.runtime/ActionExecutor

ActionExecutor

fun interface ActionExecutor

动作执行器接口。

设计意图:

  • 负责执行某类 ActionNode。

  • 通过 type 与 registry 建立分发关系。

该接口只负责单个动作执行,不负责整条 Hook 规则调度。

Inheritors

AddRelayActionExecutor
AddStatusActionExecutor
AddVolatileActionExecutor
ApplyConditionActionExecutor
BoostActionExecutor
BoostFromRelayActionExecutor
ChangeTypeActionExecutor
ClearBoostsActionExecutor
ClearProbeActionExecutor
ClearTerrainActionExecutor
ClearWeatherActionExecutor
ConsumeItemActionExecutor
CopyBoostsActionExecutor
DamageActionExecutor
FailMoveActionExecutor
ForceSwitchActionExecutor
HealActionExecutor
InvertBoostRelayActionExecutor
InvertStoredBoostsActionExecutor
ModifyMultiplierActionExecutor
PrepareBoostPassActionExecutor
RemoveConditionActionExecutor
RemoveStatusActionExecutor
RemoveVolatileActionExecutor
RestorePpActionExecutor
SetProbeActionExecutor
SetRelayActionExecutor
SetTerrainActionExecutor
SetWeatherActionExecutor
StealBoostsActionExecutor
SwapBoostsActionExecutor
TriggerEventActionExecutor

Properties

type
Link copied to clipboard
open val type: ActionTypeId

当前执行器负责的动作类型标识。

Functions

execute
Link copied to clipboard
abstract fun execute(action: ActionNode, context: EventContext): ActionResult

在指定上下文中执行动作并返回执行结果。

Generated by Dokka
© 2026 Copyright