diff options
| author | historia <[not public]> | 2026-10-03 00:51:41 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 00:51:41 -0400 |
| commit | 82e571d227feeafd0af4011e701ce26b99c5e3d9 (patch) | |
| tree | ab4d56ddf94c3bf3b42fff5dfc2ff9a339f09113 /internal/casino/manager.go | |
| parent | cac16d1725c46c82a2e62b84c93f7090b2ce0746 (diff) | |
| download | thehouseoficarus-82e571d227feeafd0af4011e701ce26b99c5e3d9.tar.gz | |
fix: craps felt and wager description cleanup
Diffstat (limited to 'internal/casino/manager.go')
| -rw-r--r-- | internal/casino/manager.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/casino/manager.go b/internal/casino/manager.go index c9dde5a..8a33df6 100644 --- a/internal/casino/manager.go +++ b/internal/casino/manager.go @@ -338,6 +338,19 @@ func (m *Manager) MachineBusy(name string) bool { return false } +// TableBusy reports whether any table has an action in flight for the named +// player. The command loop uses it to hold the prompt until the action lands. +func (m *Manager) TableBusy(name string) bool { + m.mu.Lock() + defer m.mu.Unlock() + for _, table := range m.tables { + if table.Busy(name) { + return true + } + } + return false +} + // RefundAll resolves every outstanding wager by refunding committed stakes // to their players and then closing each game's round. Graceful shutdown and // room eviction use this: rounds cannot settle, so no player may lose a |
