Gamgine-0.4.1: 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

data StateTransition Source

when a state should be entered or leaved

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