From 181043471664bcf4f5388fe1269aca303dd2080e Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Wed, 9 Oct 2019 00:50:10 -0400 Subject: [PATCH] added selectedPlayer and pMinsRecorded fields to GameState --- src/Mtlstats/Types.hs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Mtlstats/Types.hs b/src/Mtlstats/Types.hs index 152c728..31ddf14 100644 --- a/src/Mtlstats/Types.hs +++ b/src/Mtlstats/Types.hs @@ -60,6 +60,8 @@ module Mtlstats.Types ( assistsBy, gamePlayerStats, confirmGoalDataFlag, + selectedPlayer, + pMinsRecorded, -- ** CreatePlayerState Lenses cpsNumber, cpsName, @@ -223,6 +225,10 @@ data GameState = GameState -- ^ The player stats accumulated over the game , _confirmGoalDataFlag :: Bool -- ^ Set when the user confirms the goal data + , _selectedPlayer :: Maybe Int + -- ^ Index number of the selected 'Player' + , _pMinsRecorded :: Bool + -- ^ Set when the penalty mintes have been recorded } deriving (Eq, Show) -- | The type of game @@ -523,6 +529,8 @@ newGameState = GameState , _assistsBy = [] , _gamePlayerStats = M.empty , _confirmGoalDataFlag = False + , _selectedPlayer = Nothing + , _pMinsRecorded = False } -- | Constructor for a 'CreatePlayerState'