setBotPolicy

fun setBotPolicy(botId: Int, breakpointEnabled: Boolean? = null, debuggingEnabled: Boolean? = null)

Sends a bot-policy-update for the given bot.

Set breakpointEnabled to true to make the server wait for this bot's intent instead of issuing a SkippedTurnEvent when the turn timeout expires. Set to false to disable; the server will immediately skip and resume if it is currently waiting for this bot.

Requires the server to support breakpoint mode — check serverFeatures.breakpointMode before calling.

Parameters

botId

the id of the target bot (from BotInfo.id in onBotListUpdate)

breakpointEnabled

enable or disable breakpoint mode; null leaves unchanged

debuggingEnabled

enable or disable debug graphics; null leaves unchanged