diff options
Diffstat (limited to 'go/game/playerControl.go')
| -rw-r--r-- | go/game/playerControl.go | 12 |
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} } |
