From a4c71b95d9c4eab21d80f6933ce5c00efae0e7ed Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 3 Apr 2023 17:34:13 +0200 Subject: remove unused members and make EotEffects private --- go/game/state.go | 11 ++++------- 1 file 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{} } -- cgit v1.2.3