From b0cf9a83a1b61530272337612b06bc5920672c4d Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Mon, 4 Nov 2019 00:57:46 -0500 Subject: [PATCH] added gameGoalieAssigned field to GameState --- src/Mtlstats/Types.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mtlstats/Types.hs b/src/Mtlstats/Types.hs index 1bd6708..27e0e3c 100644 --- a/src/Mtlstats/Types.hs +++ b/src/Mtlstats/Types.hs @@ -74,6 +74,7 @@ module Mtlstats.Types ( goalieMinsPlayed, goalsAllowed, goaliesRecorded, + gameGoalieAssigned, -- ** CreatePlayerState Lenses cpsNumber, cpsName, @@ -274,6 +275,9 @@ data GameState = GameState -- the game , _goaliesRecorded :: Bool -- ^ Set when the user confirms that all goalie info has been entered + , _gameGoalieAssigned :: Bool + -- ^ Set to 'True' when the goalie has been selected who will be + -- given the win/loss/tie } deriving (Eq, Show) -- | The type of game @@ -645,6 +649,7 @@ newGameState = GameState , _goalieMinsPlayed = Nothing , _goalsAllowed = Nothing , _goaliesRecorded = False + , _gameGoalieAssigned = False } -- | Constructor for a 'CreatePlayerState'