diff options
Diffstat (limited to 'go/game/action.go')
| -rw-r--r-- | go/game/action.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/go/game/action.go b/go/game/action.go index 0cc0bd0a..ab38f238 100644 --- a/go/game/action.go +++ b/go/game/action.go @@ -93,6 +93,20 @@ func newHandCardSelection(p *Player, min, max int) Action { return a } +func newAlliedUnitSelection(p *Player, min, max int) Action { + a := &TargetSelection{player: p} + targetDesc := TargetDesc{"unit you control", fmt.Sprintf("%d-%d", min, max)} + a.targets = newTargets(newTarget(p.gameState, targetDesc, a)) + return a +} + +func newTileSelection(p *Player, constraint TargetConstraintFunc, min, max int) Action { + a := &TargetSelection{player: p} + desc := TargetDesc{"tile", fmt.Sprintf("%d-%d", min, max)} + a.targets = newTargets(newConstraintTarget(p.gameState, desc, constraint, a)) + return a +} + type FreeDiscardAction struct { TargetSelection } |
