Safe Haskell | None |
---|
Game action monads and basic building blocks for human and computer player actions. Has no access to the the main action type.
- class (Monad m, Functor m) => MonadActionRO m where
- class MonadActionRO m => MonadAction m where
- modifyState :: (State -> State) -> m ()
- putState :: State -> m ()
- class MonadActionRO m => MonadAtomic m where
- execAtomic :: Atomic -> m ()
- execCmdAtomic :: CmdAtomic -> m ()
- execSfxAtomic :: SfxAtomic -> m ()
- getLevel :: MonadActionRO m => LevelId -> m Level
- nUI :: MonadActionRO m => m Int
- serverSaveName :: String
Action monads
class (Monad m, Functor m) => MonadActionRO m whereSource
class MonadActionRO m => MonadAction m whereSource
class MonadActionRO m => MonadAtomic m whereSource
execAtomic :: Atomic -> m ()Source
execCmdAtomic :: CmdAtomic -> m ()Source
execSfxAtomic :: SfxAtomic -> m ()Source
Shorthands
getLevel :: MonadActionRO m => LevelId -> m LevelSource
nUI :: MonadActionRO m => m IntSource