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 eea6a19b..94c8be7e 100644
--- a/go/game/playerControl.go
+++ b/go/game/playerControl.go
@@ -12,6 +12,7 @@ const (
ResolvedActionNotification
PriorityNotification
TargetSelectionPrompt
+ DeclareTriggeredActionsPrompt
)
func (n PlayerNotificationType) String() string {
@@ -24,6 +25,8 @@ func (n PlayerNotificationType) String() string {
return "PriorityNotification"
case TargetSelectionPrompt:
return "TargetSelectionPrompt"
+ case DeclareTriggeredActionsPrompt:
+ return "DeclareTriggeredActionsPrompt"
default:
log.Panicf("Unhandled notification %d", n)
return ""
@@ -86,6 +89,10 @@ func newHandCardSelectionPrompt(p *Player, min, max int) PlayerNotification {
return newTargetSelectionPrompt(a, desc)
}
+func newDeclareTriggeredActionsPrompt(triggeredActions []*TriggeredAction) PlayerNotification {
+ return PlayerNotification{DeclareTriggeredActionsPrompt, triggeredActions, nil}
+}
+
type PlayerControl interface {
Player() *Player
RecvAction() Action