Nomyx-Language-0.7.3: Language to express rules for Nomic

Safe HaskellNone
LanguageHaskell98

Language.Nomyx.Outputs

Description

All the building blocks to allow rules to produce outputs. for example, you can display a message like this: do outputAll_ "hello, world!"

Synopsis

Documentation

newOutput :: Maybe PlayerNumber -> NomexNE String -> Nomex OutputNumber Source

outputs a message to one player, dynamic version

newOutput_ :: Maybe PlayerNumber -> String -> Nomex OutputNumber Source

outputs a message to one player, static version

outputAll :: NomexNE String -> Nomex OutputNumber Source

output a message to all players

outputAll_ :: String -> Nomex () Source

output a constant message to all players

getOutput :: OutputNumber -> NomexNE (Maybe String) Source

get an output by number

getOutput_ :: OutputNumber -> Nomex String Source

get an output by number, partial version

delOutput :: OutputNumber -> Nomex Bool Source

delete an output