BootProgress

data class BootProgress(val expected: Map<BotIdentity, Int>, val connected: Map<BotIdentity, Int>, val pending: Map<BotIdentity, Int>, val elapsedMs: Long, val timeoutMs: Long)

Snapshot of bot-connection progress during the boot phase of a battle.

Fired via BattleHandle.onBootProgress on every dev.robocode.tankroyale.client.model.BotListUpdate and periodically (every 500 ms) while waiting for bots to connect.

Constructors

Link copied to clipboard
constructor(expected: Map<BotIdentity, Int>, connected: Map<BotIdentity, Int>, pending: Map<BotIdentity, Int>, elapsedMs: Long, timeoutMs: Long)

Properties

Link copied to clipboard

multiset of identities that have connected so far (identity → connected count)

Link copied to clipboard

milliseconds elapsed since boot started

Link copied to clipboard

multiset of identities that must connect (identity → required count)

Link copied to clipboard

multiset of identities still missing (identity → remaining count)

Link copied to clipboard

configured bot-connect timeout in milliseconds

Link copied to clipboard

Total number of bot slots filled so far.

Link copied to clipboard

Total number of bot slots that must be filled.