LambdaHack-0.2.10: 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 where

Methods

getState :: m State

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

class MonadActionRO m => MonadAction m where

Methods

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

putState :: State -> m ()

Shorthands

Assorted