BattleSessionCommandFactory
interface BattleSessionCommandFactory
battle session 命令工厂。
设计意图:
统一负责
BattleSessionChoice与BattleSessionAction两个命令族的创建。让
BattleSession包装方法和 choice handler 只保留校验、编排与日志职责。
Inheritors
Functions
Link copied to clipboard
由统一 choice 创建对应的 action。
Link copied to clipboard
abstract fun createCaptureAction(playerId: String, ballItemId: String, sourceUnitId: String, targetId: String, priority: Int, speed: Int): BattleSessionCaptureAction
创建一个 capture action。
Link copied to clipboard
abstract fun createCaptureChoice(playerId: String, ballItemId: String, sourceUnitId: String, targetId: String, priority: Int, speed: Int): CaptureChoice
创建一个 capture choice。
Link copied to clipboard
abstract fun createItemAction(itemId: String, actorUnitId: String, targetId: String, priority: Int, speed: Int, attributes: Map<String, Any?>): BattleSessionItemAction
创建一个 item action。
Link copied to clipboard
abstract fun createItemChoice(itemId: String, actorUnitId: String, targetId: String, priority: Int, speed: Int, attributes: Map<String, Any?>): ItemChoice
创建一个 item choice。
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
创建一个 run action。
Link copied to clipboard
创建一个 run choice。
Link copied to clipboard
abstract fun createSwitchAction(sideId: String, outgoingUnitId: String, incomingUnitId: String, priority: Int, speed: Int): BattleSessionSwitchAction
创建一个 switch action。
Link copied to clipboard
abstract fun createSwitchChoice(sideId: String, outgoingUnitId: String, incomingUnitId: String, priority: Int, speed: Int): SwitchChoice
创建一个 switch choice。
Link copied to clipboard
创建一个 wait action。
Link copied to clipboard
创建一个 wait choice。