Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class StateMachine a us where
Documentation
class StateMachine a us where Source #
Typeclass for simple scaffolding of a state machine
smLoad :: a -> Affection us () Source #
State load routine
smUpdate :: a -> Double -> Affection us () Source #
state update routine
smEvent :: a -> [EventPayload] -> Affection us () Source #
State event handler routine
smDraw :: a -> Affection us () Source #
State draw routine
smClean :: a -> Affection us () Source #
State clean routine