LambdaHack-0.2.12: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.Common.Action

Contents

Description

Game action monads and basic building blocks for human and computer player actions. Has no access to the the main action type.

Synopsis

Action monads

class (Monad m, Functor m) => MonadActionRO m whereSource

Methods

getState :: m StateSource

getsState :: (State -> a) -> m aSource

class MonadActionRO m => MonadAction m whereSource

Methods

modifyState :: (State -> State) -> m ()Source

putState :: State -> m ()Source

Shorthands

Assorted