PlayerActionQueue

class PlayerActionQueue(val playerNumber: Int, val player: KailleraUser, numPlayers: Int, gameBufferSize: Int)

Constructors

Link copied to clipboard
constructor(playerNumber: Int, player: KailleraUser, numPlayers: Int, gameBufferSize: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether the queue is synced with the org.emulinker.kaillera.model.KailleraGame.

Functions

Link copied to clipboard
fun addActions(actions: ByteBuf)

Adds "actions" to the queue.

Link copied to clipboard
fun containsNewDataForPlayer(playerIndex: Int, actionLength: Int): Boolean
Link copied to clipboard
fun getActionAndWriteToArray(readingPlayerIndex: Int, writeTo: ByteBuf, actionLength: Int)
Link copied to clipboard
Link copied to clipboard