|
|
|
@ -232,7 +232,7 @@ class ComputedAction(var manager: ActionManager, |
|
|
|
val actionTypeCanBeEdited: Boolean |
|
|
|
val actionTypeCanBeEdited: Boolean |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
return when (this.action.type) { |
|
|
|
return when (this.action.type) { |
|
|
|
Action.Type.POST_SB, Action.Type.POST_BB -> false |
|
|
|
Action.Type.POST_SB, Action.Type.POST_BB, Action.Type.STRADDLE -> false |
|
|
|
else -> true |
|
|
|
else -> true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -243,7 +243,7 @@ class ComputedAction(var manager: ActionManager, |
|
|
|
val amountCanBeEdited: Boolean |
|
|
|
val amountCanBeEdited: Boolean |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
return when (this.action.type) { |
|
|
|
return when (this.action.type) { |
|
|
|
Action.Type.POST_SB, Action.Type.POST_BB, |
|
|
|
Action.Type.POST_SB, Action.Type.POST_BB, Action.Type.STRADDLE, |
|
|
|
Action.Type.BET, Action.Type.RAISE -> true |
|
|
|
Action.Type.BET, Action.Type.RAISE -> true |
|
|
|
Action.Type.BET_ALLIN, Action.Type.RAISE_ALLIN -> (this.playerRemainingStack == null) |
|
|
|
Action.Type.BET_ALLIN, Action.Type.RAISE_ALLIN -> (this.playerRemainingStack == null) |
|
|
|
else -> false |
|
|
|
else -> false |
|
|
|
|