14 lines
361 B
Haskell
14 lines
361 B
Haskell
{-# LANGUAGE MultiParamTypeClasses #-}
|
|
|
|
module Affection.StateMachine where
|
|
|
|
import Affection.Types
|
|
|
|
import qualified SDL
|
|
|
|
class StateMachine a us where
|
|
smLoad :: a -> Affection us ()
|
|
smUpdate :: a -> Double -> Affection us ()
|
|
smEvent :: a -> Double -> SDL.Event -> Affection us ()
|
|
smDraw :: a -> Affection us ()
|
|
smClean :: a -> Affection us ()
|