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

Safe HaskellNone

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 OutputNumberSource

outputs a message to one player

newOutput_ :: Maybe PlayerNumber -> String -> Nomex OutputNumberSource

outputs a message to one player

outputAll :: NomexNE String -> Nomex OutputNumberSource

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 StringSource

get an output by number, partial version

delOutput :: OutputNumber -> Nomex BoolSource

delete an output