aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/video_poker.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/video_poker.go')
-rw-r--r--internal/casino/video_poker.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/casino/video_poker.go b/internal/casino/video_poker.go
index 8c9f66c..e5012f5 100644
--- a/internal/casino/video_poker.go
+++ b/internal/casino/video_poker.go
@@ -109,6 +109,25 @@ func (t *videoPokerTable) overview() string {
func (t *videoPokerTable) overviewLocked() string {
return t.settings.CabinetName() + " machine"
}
+func (t *videoPokerTable) seats() []string {
+ t.mu.Lock()
+ defer t.mu.Unlock()
+ names := make([]string, 0, len(t.players))
+ for name := range t.players {
+ names = append(names, name)
+ }
+ return names
+}
+func (t *videoPokerTable) state() string {
+ t.mu.Lock()
+ defer t.mu.Unlock()
+ for _, p := range t.players {
+ if p.active {
+ return "playing"
+ }
+ }
+ return "waiting"
+}
func (t *videoPokerTable) wagers(string) []WagerRow { return nil }
func (t *videoPokerTable) hints(name string) []MenuCommand {
t.mu.Lock()