fix state machine
This commit is contained in:
parent
3b9a366830
commit
fc6bfa1ca5
1 changed files with 6 additions and 6 deletions
|
@ -7,14 +7,14 @@ import Affection.Types
|
||||||
import qualified SDL
|
import qualified SDL
|
||||||
|
|
||||||
-- | Typeclass for simple scaffolding of a state machine
|
-- | Typeclass for simple scaffolding of a state machine
|
||||||
class StateMachine a where
|
class StateMachine us a where
|
||||||
-- | State load routine
|
-- | State load routine
|
||||||
smLoad :: a -> Affection ()
|
smLoad :: a -> us -> Affection ()
|
||||||
-- | state update routine
|
-- | state update routine
|
||||||
smUpdate :: a -> Double -> Affection ()
|
smUpdate :: a -> us -> Double -> Affection ()
|
||||||
-- | State event handler routine
|
-- | State event handler routine
|
||||||
smEvent :: a -> [SDL.EventPayload] -> Affection ()
|
smEvent :: a -> us -> [SDL.EventPayload] -> Affection ()
|
||||||
-- | State draw routine
|
-- | State draw routine
|
||||||
smDraw :: a -> Affection ()
|
smDraw :: a -> us -> Affection ()
|
||||||
-- | State clean routine
|
-- | State clean routine
|
||||||
smClean :: a -> Affection ()
|
smClean :: a -> us -> Affection ()
|
||||||
|
|
Loading…
Reference in a new issue