aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/table_ux.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/table_ux.go')
-rw-r--r--internal/casino/table_ux.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/casino/table_ux.go b/internal/casino/table_ux.go
index 9590baf..f4255be 100644
--- a/internal/casino/table_ux.go
+++ b/internal/casino/table_ux.go
@@ -79,6 +79,18 @@ func (c *tableCore[P]) warning(name, text string) Event {
return e
}
+// committedMenu never advertises another bet over an already committed wager.
+func (c *tableCore[P]) committedMenu(name string) Event {
+ e := c.private(name, "Your wager is committed; waiting for the round.")
+ e.Color = "casino_menu"
+ e.Menu = &MenuView{Heading: e.Message, Commands: []MenuCommand{
+ {Command: "table", Desc: "View the table"},
+ {Command: "sitout", Desc: "Sit out after this round"},
+ {Command: "stop", Desc: "Leave after this round"},
+ }}
+ return e
+}
+
// controlLocked queues departures without changing committed hands or stakes.
func (c *tableCore[P]) controlLocked(name, action string) ([]Event, bool) {
if action != "leave_after" && action != "sitout" {