diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-03 17:34:13 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:07 +0200 |
| commit | 5e519be072539f4f89ffbb873df9ee6e9bcd1711 (patch) | |
| tree | 196df5668042aff3b4c25da8f5f3743fa5d73df2 | |
| parent | 90e93c708cf045b3f70ebd04c17ed8f0a303ab37 (diff) | |
| download | muhqs-game-5e519be072539f4f89ffbb873df9ee6e9bcd1711.tar.gz muhqs-game-5e519be072539f4f89ffbb873df9ee6e9bcd1711.zip | |
remove unused members and make EotEffects private
| -rw-r--r-- | go/game/state.go | 11 |
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{} } |
