|
|
|
|
@ -313,43 +313,40 @@ class ReplayerConfiguration(var handHistory: HandHistory) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun stackRectForPlayer(i: Int): RectF { |
|
|
|
|
return this.playerStackRects[i] |
|
|
|
|
fun stackRectForPlayer(positionIndex: Int): RectF { |
|
|
|
|
return this.playerStackRects[positionIndex] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun circleForPlayer(i: Int): Circle { |
|
|
|
|
return this.playerCircles[i] |
|
|
|
|
fun circleForPlayer(positionIndex: Int): Circle { |
|
|
|
|
return this.playerCircles[positionIndex] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun chipCircle(i: Int): Circle { |
|
|
|
|
return this.chipCircles[i] |
|
|
|
|
fun chipCircle(positionIndex: Int): Circle { |
|
|
|
|
return this.chipCircles[positionIndex] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun chipText(i: Int): TextPoint { |
|
|
|
|
return this.chipTextPoints[i] |
|
|
|
|
fun chipText(positionIndex: Int): TextPoint { |
|
|
|
|
return this.chipTextPoints[positionIndex] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun pointForPlayerName(i: Int): TextPoint { |
|
|
|
|
return this.playerNamePoints[i] |
|
|
|
|
fun pointForPlayerName(positionIndex: Int): TextPoint { |
|
|
|
|
return this.playerNamePoints[positionIndex] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun pointForPlayerStack(i: Int): TextPoint { |
|
|
|
|
return this.playerStackPoints[i] |
|
|
|
|
fun pointForPlayerStack(positionIndex: Int): TextPoint { |
|
|
|
|
return this.playerStackPoints[positionIndex] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun pointForPlayerAction(i: Int): TextPoint { |
|
|
|
|
return this.playerActionPoints[i] |
|
|
|
|
fun pointForPlayerAction(positionIndex: Int): TextPoint { |
|
|
|
|
return this.playerActionPoints[positionIndex] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun cardRects(i: Int): List<RectF> { |
|
|
|
|
return this.playerCardRects[i] |
|
|
|
|
fun cardRects(positionIndex: Int): List<RectF> { |
|
|
|
|
return this.playerCardRects[positionIndex] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun lastActionBeforeStreet(street: Street): ComputedAction? { |
|
|
|
|
@ -406,16 +403,16 @@ class ReplayerConfiguration(var handHistory: HandHistory) { |
|
|
|
|
return this.actionList.activePositionIndexes(index) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun playerRemainingStack(i: Int): Double? { |
|
|
|
|
fun playerRemainingStack(positionIndex: Int): Double? { |
|
|
|
|
this.lastActionAtStep?.action?.index?.let { index -> |
|
|
|
|
return this.actionList.playerRemainingStack(i, index) |
|
|
|
|
return this.actionList.playerRemainingStack(positionIndex, index) |
|
|
|
|
} |
|
|
|
|
return null |
|
|
|
|
return this.handHistory.playerSetupForPosition(positionIndex)?.stack |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun lastChipCommittingActionOfPlayer(i: Int): ComputedAction? { |
|
|
|
|
fun lastChipCommittingActionOfPlayer(positionIndex: Int): ComputedAction? { |
|
|
|
|
this.lastActionAtStep?.action?.index?.let { index -> |
|
|
|
|
return this.actionList.lastChipCommittingActionOfPlayer(i, index) |
|
|
|
|
return this.actionList.lastChipCommittingActionOfPlayer(positionIndex, index) |
|
|
|
|
} |
|
|
|
|
return null |
|
|
|
|
} |
|
|
|
|
@ -424,12 +421,12 @@ class ReplayerConfiguration(var handHistory: HandHistory) { |
|
|
|
|
this.currentFrame += 1 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun animatedChipCircleFromPot(i: Int): Circle { |
|
|
|
|
return this.animatedChipCircle(this.potChipCircle, this.chipCircle(i)) |
|
|
|
|
fun animatedChipCircleFromPot(positionIndex: Int): Circle { |
|
|
|
|
return this.animatedChipCircle(this.potChipCircle, this.chipCircle(positionIndex)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun animatedChipCircleToPot(i: Int): Circle { |
|
|
|
|
return this.animatedChipCircle(this.chipCircle(i), this.potChipCircle) |
|
|
|
|
fun animatedChipCircleToPot(positionIndex: Int): Circle { |
|
|
|
|
return this.animatedChipCircle(this.chipCircle(positionIndex), this.potChipCircle) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun animatedChipCircle(origin: Circle, destination: Circle): Circle { |
|
|
|
|
|