DefaultBattleSessionActionSortingStrategy
class DefaultBattleSessionActionSortingStrategy(actionSpeedResolver: BattleSessionActionSpeedResolver = BattleSessionActionSpeedResolver()) : BattleSessionActionSortingStrategy
默认 battle session action 排序策略。
设计意图:
在保留现有
priority语义的基础上,把速度排序升级为可读取当前快照的有效速度;先接入
tailwind / trick-room这组最常见速度规则;为后续继续补 battle type 差异化排序、随机 tie-break 与更完整优先级系统预留入口。
Constructors
Link copied to clipboard
constructor(actionSpeedResolver: BattleSessionActionSpeedResolver = BattleSessionActionSpeedResolver())
Functions
Link copied to clipboard
open override fun sort(snapshot: BattleRuntimeSnapshot, actions: List<QueuedBattleSessionMoveAction>): List<BattleSessionAction>
对当前队列中的 action 进行排序。