aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-04-03 17:34:13 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:53 +0100
commita4c71b95d9c4eab21d80f6933ce5c00efae0e7ed (patch)
tree8deadf18512e5fe23aa020cfaa2f96a92f4080b6
parente2acea9d73cc717786b083008cb44441ef487299 (diff)
downloadmuhqs-game-a4c71b95d9c4eab21d80f6933ce5c00efae0e7ed.tar.gz
muhqs-game-a4c71b95d9c4eab21d80f6933ce5c00efae0e7ed.zip
remove unused members and make EotEffects private
-rw-r--r--go/game/state.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/go/game/state.go b/go/game/state.go
index 87e1ee3d..49ee0c06 100644
--- a/go/game/state.go
+++ b/go/game/state.go
@@ -12,20 +12,17 @@ import (
)
type State struct {
- Decks []*Deck
Stores []*Store
Exile *PileOfCardsBase
Map *Map
Stack *Stack
- Hands []*Hand
- DiscardPiles []*DiscardPile
Players []*Player
ActivePlayer *Player
ActivePhase PhaseType
Permanents []Permanent
Units []*Unit
Rand *rand.Rand
- EotEffects []effect
+ eotEffects []effect
outstandingEquipment []*Card
}
@@ -591,7 +588,7 @@ func (s *State) redistributeMapStoreCards() {
func (s *State) addEotEffect(e effect) {
e.apply(s)
- s.EotEffects = append(s.EotEffects, e)
+ s.eotEffects = append(s.eotEffects, e)
}
func (s *State) endOfTurn() {
@@ -600,9 +597,9 @@ func (s *State) endOfTurn() {
s.ActivePlayer.DiscardPile.AddCard(e)
}
- for _, e := range s.EotEffects {
+ for _, e := range s.eotEffects {
e.end(s)
}
- s.EotEffects = []effect{}
+ s.eotEffects = []effect{}
}