Package-level declarations

Types

Link copied to clipboard
class BattleChoiceResolver(effectDefinitionRepository: EffectDefinitionRepository, targetQueryService: BattleSessionTargetQueryService)

battle-engine 应用层的智能 choice 解析器。

Link copied to clipboard

battle-engine 对外提供的唯一程序化门面。

Link copied to clipboard
data class BattleSettlementPlan(val sessionId: String, val battleKind: BattleType, val endedReason: String?, val session: BattleSessionQuery, val tasks: List<BattleSettlementTask>)

引擎为战后阶段生成的任务计划。

Link copied to clipboard

引擎内部的结算计划生成器。

Link copied to clipboard

引擎可规划出的标准结算任务。

Link copied to clipboard
class DefaultBattleEngineService(battleSessionGateway: BattleSessionGateway, battleChoiceResolver: BattleChoiceResolver, battleAiChoiceProviders: List<BattleAiChoiceProvider>, battleSettlementPlanners: List<BattleSettlementPlanner>) : BattleEngineService

battle-engine 默认应用门面。

Link copied to clipboard
data class InitializeBattleCommand(val sessionId: String, val formatId: String, val sides: List<InitializeBattleSideCommand>, val battleKind: BattleType = BattleType.TRAINER, val capturableSideId: String? = null, val autoStart: Boolean = true)

引擎建局命令。

Link copied to clipboard
data class InitializeBattleSideCommand(val sideId: String, val units: List<UnitState>, val activeUnitIds: Set<String> = emptySet())

引擎初始化时单个 side 的输入。

Link copied to clipboard

trainer / pvp / dungeon 共用的标准结算规划。

Link copied to clipboard
data class SubmitCaptureChoiceCommand(val playerId: String, val ballItemId: String, val sourceUnitId: String? = null, val targetId: String, val priority: Int? = null, val speed: Int? = null)

智能捕捉命令。

Link copied to clipboard
data class SubmitItemChoiceCommand(val actorUnitId: String, val itemId: String, val targetId: String? = null, val priority: Int? = null, val speed: Int? = null, val chanceRoll: Int? = null, val attributes: Map<String, Any?> = emptyMap())

智能用道具命令。

Link copied to clipboard
data class SubmitMoveChoiceCommand(val attackerId: String, val moveId: String, val targetId: String? = null, val priority: Int? = null, val speed: Int? = null, val accuracy: Int? = null, val evasion: Int? = null, val basePower: Int? = null, val damage: Int? = null, val accuracyRoll: Int? = null, val chanceRoll: Int? = null, val criticalRoll: Int? = null, val damageRoll: Int? = null, val criticalHit: Boolean? = null, val attributes: Map<String, Any?> = emptyMap())

智能出招命令。

Link copied to clipboard
data class SubmitReplacementChoiceCommand(val sideId: String, val incomingUnitId: String)

替补上场命令。

Link copied to clipboard
data class SubmitRunChoiceCommand(val sideId: String, val priority: Int? = null, val speed: Int? = null)

逃跑命令。

Link copied to clipboard
data class SubmitSwitchChoiceCommand(val sideId: String, val outgoingUnitId: String, val incomingUnitId: String, val priority: Int? = null, val speed: Int? = null)

换人命令。

Link copied to clipboard

wild battle 的结算规划。