diff options
Diffstat (limited to 'go/game/playerControl.go')
| -rw-r--r-- | go/game/playerControl.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/go/game/playerControl.go b/go/game/playerControl.go index 5e1552f0..e62d91b3 100644 --- a/go/game/playerControl.go +++ b/go/game/playerControl.go @@ -8,6 +8,7 @@ const ( PriorityNotification UpkeepPrompt BuyPrompt + HandCardSelectionPrompt ) func (n PlayerNotification) IsPriorityNotification() bool { @@ -40,6 +41,10 @@ func NewBuyPrompt() PlayerNotification { return PlayerNotification{BuyPrompt, nil, nil} } +func NewHandCardSelectionPrompt(min, max int) PlayerNotification { + return PlayerNotification{HandCardSelectionPrompt, []int{min, max}, nil} +} + type PlayerControl interface { RecvAction() Action SendNotification(PlayerNotification) @@ -47,7 +52,7 @@ type PlayerControl interface { type DummyPlayerControl struct{ P *Player } -func (c *DummyPlayerControl) RecvAction() Action { return NewPassPriorityAction(c.P) } +func (c *DummyPlayerControl) RecvAction() Action { return NewPassPriority(c.P) } func (*DummyPlayerControl) SendNotification(PlayerNotification) {} type ChanPlayerControl struct { |
