aboutsummaryrefslogtreecommitdiff
path: root/go/game/playerControl.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-09-05 18:28:47 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-09-05 18:28:47 +0200
commit034e176110cc0a27cd20bdfe8522fd0dc73d2346 (patch)
treee0198741c94fb3af7777056c031e74100f4f9bb5 /go/game/playerControl.go
parent611c8cd048ca216c16da6744ce2052d9dc000c83 (diff)
downloadmuhqs-game-034e176110cc0a27cd20bdfe8522fd0dc73d2346.tar.gz
muhqs-game-034e176110cc0a27cd20bdfe8522fd0dc73d2346.zip
implement more prompts and exp1/backup!
Diffstat (limited to 'go/game/playerControl.go')
-rw-r--r--go/game/playerControl.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/go/game/playerControl.go b/go/game/playerControl.go
index 5f446106..676d15ce 100644
--- a/go/game/playerControl.go
+++ b/go/game/playerControl.go
@@ -109,6 +109,18 @@ func newHandCardSelectionPrompt(p *Player, min, max int) PlayerNotification {
return newTargetSelectionPrompt(a, desc)
}
+func newAlliedUnitSelectionPrompt(p *Player, min, max int) PlayerNotification {
+ a := newAlliedUnitSelection(p, min, max)
+ desc := fmt.Sprintf("Select between %d and %d allied units", min, max)
+ return newTargetSelectionPrompt(a, desc)
+}
+
+func newTileSelectionPrompt(p *Player, c TargetConstraintFunc, min, max int) PlayerNotification {
+ a := newTileSelection(p, c, min, max)
+ desc := fmt.Sprintf("Select between %d and %d tiles", min, max)
+ return newTargetSelectionPrompt(a, desc)
+}
+
func newDeclareTriggeredActionsPrompt(triggeredActions []*TriggeredAction) PlayerNotification {
return PlayerNotification{DeclareTriggeredActionsPrompt, triggeredActions, nil}
}