aboutsummaryrefslogtreecommitdiff
path: root/go/game/playerControl.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/playerControl.go')
-rw-r--r--go/game/playerControl.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/go/game/playerControl.go b/go/game/playerControl.go
index 94c8be7e..bad1a13a 100644
--- a/go/game/playerControl.go
+++ b/go/game/playerControl.go
@@ -13,6 +13,7 @@ const (
PriorityNotification
TargetSelectionPrompt
DeclareTriggeredActionsPrompt
+ DraftPickPrompt
)
func (n PlayerNotificationType) String() string {
@@ -27,6 +28,8 @@ func (n PlayerNotificationType) String() string {
return "TargetSelectionPrompt"
case DeclareTriggeredActionsPrompt:
return "DeclareTriggeredActionsPrompt"
+ case DraftPickPrompt:
+ return "DraftPickPrompt"
default:
log.Panicf("Unhandled notification %d", n)
return ""
@@ -93,6 +96,10 @@ func newDeclareTriggeredActionsPrompt(triggeredActions []*TriggeredAction) Playe
return PlayerNotification{DeclareTriggeredActionsPrompt, triggeredActions, nil}
}
+func newDraftPickPrompt(pack PileOfCards) PlayerNotification {
+ return PlayerNotification{DraftPickPrompt, pack, nil}
+}
+
type PlayerControl interface {
Player() *Player
RecvAction() Action