|
|
|
|
@ -41,13 +41,19 @@ class ReplayerConfiguration(var handHistory: HandHistory) { |
|
|
|
|
get() { |
|
|
|
|
return when (val step = this.currentStep) { |
|
|
|
|
is ComputedAction -> FrameType.STATE |
|
|
|
|
is Street -> { |
|
|
|
|
Street.SUMMARY -> { |
|
|
|
|
when (this.currentFrame) { |
|
|
|
|
in (0 until framesForChipsAnimation) -> FrameType.GATHER_ANIMATION |
|
|
|
|
in (framesForChipsAnimation until 2 * framesForChipsAnimation) -> FrameType.DISTRIBUTION_ANIMATION |
|
|
|
|
else -> FrameType.STATE |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
is Street -> { |
|
|
|
|
when (this.currentFrame) { |
|
|
|
|
in (0 until framesForChipsAnimation) -> FrameType.GATHER_ANIMATION |
|
|
|
|
else -> FrameType.STATE |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else -> throw PAIllegalStateException("unmanaged step: $step") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|