From e6a1bb4ba06361abdc2cf1bed4041fe3013b188b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 31 Jan 2023 00:16:53 +0100 Subject: intermediate commit --- go/game/playerControl.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'go/game/playerControl.go') 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 { -- cgit v1.2.3