BattleSessionMoveAction

data class BattleSessionMoveAction(val moveId: String, val attackerId: String, val targetId: String, val kind: BattleSessionActionKind = BattleSessionActionKind.MOVE, val priority: Int = 0, val speed: Int = 0, val accuracy: Int? = null, val evasion: Int? = null, val basePower: Int, val damage: Int, val attributes: Map<String, Any?> = emptyMap()) : BattleSessionEffectAction

BattleSession 中最小可用的出招动作请求。

设计意图:

  • 作为一回合内待执行动作的稳定数据结构。

  • 当前阶段只覆盖 move action,不扩展到换人、用道具等其它行动。

Constructors

Link copied to clipboard
constructor(moveId: String, attackerId: String, targetId: String, kind: BattleSessionActionKind = BattleSessionActionKind.MOVE, priority: Int = 0, speed: Int = 0, accuracy: Int? = null, evasion: Int? = null, basePower: Int, damage: Int, attributes: Map<String, Any?> = emptyMap())

Properties

Link copied to clipboard

命中值输入。

Link copied to clipboard

行动发起者单位标识。

Link copied to clipboard

传递给 battle flow 的扩展属性。

Link copied to clipboard

招式基础威力输入。

Link copied to clipboard
val damage: Int

招式基础伤害输入。

Link copied to clipboard
open override val effectId: String

当前 action 对应的 effect 标识。

Link copied to clipboard
val evasion: Int?

回避值输入。

Link copied to clipboard
open override val kind: BattleSessionActionKind

当前 action 的命令种类。

Link copied to clipboard

招式标识。

Link copied to clipboard
open override val priority: Int

显式行动优先级,值越大越先结算。

Link copied to clipboard
open override val speed: Int

行动发起者的速度值,优先级相同时用于排序。

Link copied to clipboard
open override val submittingUnitId: String

提交当前 action 的单位标识。

Link copied to clipboard

目标单位标识。

Link copied to clipboard
open override val targetUnitId: String

当前 action 的目标单位标识。