implemented goalieInput dispatcher

This commit is contained in:
Jonathan Lamothe 2019-10-29 02:40:17 -04:00
parent 28a29e2f64
commit 8ef1c6917a

View File

@ -21,8 +21,22 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
module Mtlstats.Control.GoalieInput (goalieInput) where
import Lens.Micro ((^.))
import Mtlstats.Types
-- | The dispatcher for handling goalie input
goalieInput :: GameState -> Controller
goalieInput = undefined
goalieInput gs
| null $ gs^.gameSelectedGoalie = selectGoalieC
| null $ gs^.goalieMinsPlayed = minsPlayedC
| otherwise = goalsAllowedC
selectGoalieC :: Controller
selectGoalieC = undefined
minsPlayedC :: Controller
minsPlayedC = undefined
goalsAllowedC :: Controller
goalsAllowedC = undefined