Gamgine-0.5.2: Some kind of game library or set of utilities.

Safe HaskellNone
LanguageHaskell98

Gamgine.State.StateTree

Synopsis

Documentation

data StateTree a Source #

the tree of application states and how they entered and leaved

type EnterWhen = StateTransition Source #

at which event the next state should be entered

type LeaveWhen = StateTransition Source #

at which event the current state should be leaved

leaveState :: a -> StateTree a -> (a, StateTree a) Source #