created active flag controller branches
This commit is contained in:
parent
7e409fdbd4
commit
8d7a7997b1
|
@ -37,6 +37,7 @@ createGoalieC cgs
|
|||
| null $ cgs^.cgsNumber = getGoalieNumC
|
||||
| null $ cgs^.cgsName = getGoalieNameC
|
||||
| null $ cgs^.cgsRookieFlag = getRookieFlagC
|
||||
| null $ cgs^.cgsActiveFlag = getActiveFlagC
|
||||
| otherwise = confirmCreateGoalieC
|
||||
|
||||
getGoalieNumC :: Controller
|
||||
|
@ -55,6 +56,9 @@ getRookieFlagC = Controller
|
|||
return True
|
||||
}
|
||||
|
||||
getActiveFlagC :: Controller
|
||||
getActiveFlagC = undefined
|
||||
|
||||
confirmCreateGoalieC :: Controller
|
||||
confirmCreateGoalieC = Controller
|
||||
{ drawController = \s -> do
|
||||
|
|
|
@ -38,6 +38,7 @@ createPlayerC cps
|
|||
| null $ cps^.cpsName = getPlayerNameC
|
||||
| null $ cps^.cpsPosition = getPlayerPosC
|
||||
| null $ cps^.cpsRookieFlag = getRookieFlagC
|
||||
| null $ cps^.cpsActiveFlag = getActiveFlagC
|
||||
| otherwise = confirmCreatePlayerC
|
||||
|
||||
getPlayerNumC :: Controller
|
||||
|
@ -59,6 +60,9 @@ getRookieFlagC = Controller
|
|||
return True
|
||||
}
|
||||
|
||||
getActiveFlagC :: Controller
|
||||
getActiveFlagC = undefined
|
||||
|
||||
confirmCreatePlayerC :: Controller
|
||||
confirmCreatePlayerC = Controller
|
||||
{ drawController = \s -> do
|
||||
|
|
Loading…
Reference in New Issue
Block a user