aboutsummaryrefslogtreecommitdiff
path: root/go/game/stack.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-17 12:43:22 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:50:11 +0200
commit57e00949e66cf17cc70d2556160647b3cce3ffdf (patch)
treeb179816d173aa78c97a4443a87aeae272f0cfe63 /go/game/stack.go
parent28defc1cad1a96a2954780efa01396db8bb2fe31 (diff)
downloadmuhqs-game-57e00949e66cf17cc70d2556160647b3cce3ffdf.tar.gz
muhqs-game-57e00949e66cf17cc70d2556160647b3cce3ffdf.zip
export less methods
Diffstat (limited to 'go/game/stack.go')
-rw-r--r--go/game/stack.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/game/stack.go b/go/game/stack.go
index a06af9f3..60f041b3 100644
--- a/go/game/stack.go
+++ b/go/game/stack.go
@@ -32,7 +32,7 @@ func (s *Stack) pop() {
err := s.gameState.ValidateAction(a)
if err == nil {
- a.Resolve(s.gameState)
+ a.resolve(s.gameState)
// Some action may be reused like full actions of permanents.
// Reset their target selection to allow possible reuse.
if t := a.Targets(); t != nil {
@@ -43,9 +43,9 @@ func (s *Stack) pop() {
s.gameState.broadcastNotification(newResolvedActionNotification(a, err))
}
-func (s *Stack) Resolve() {
+func (s *Stack) resolve() {
for !s.IsEmpty() {
- s.gameState.AllPassing(false)
+ s.gameState.allPassing(false)
s.pop()
s.gameState.stateBasedActions()
}