Copyright | © Jonathan Dowland 2020 |
---|---|
License | GPL-3 |
Maintainer | jon+hackage@dow.land |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell98 |
Synopsis
- twice :: StateT Context Identity a -> StateT Context Identity ()
- triple :: Applicative m => m a -> m ()
- quad :: Applicative m => m a -> m ()
- box :: Int -> Int -> Int -> Int -> Int -> StateT Context Identity ()
- ibox :: Int -> Int -> Int -> Int -> Int -> State Context ()
- pushpop :: State Context () -> State Context ()
- place :: Int -> Int -> StateT Context Identity b -> StateT Context Identity b
- straight :: Int -> State Context ()
- turnright :: State Context ()
- turnleft :: State Context ()
- turnaround :: State Context ()
- rightsector :: Int -> Int -> Int -> State Context ()
- innerrightsector :: Int -> Int -> Int -> State Context ()
- innerleftsector :: Int -> Int -> Int -> State Context ()
- popsector :: State Context ()
- leftsector :: Int -> Int -> Int -> State Context ()
- step :: Int -> Int -> State Context ()
- draw :: Int -> Int -> State Context ()
- thing :: State Context ()
- mid :: String -> State Context ()
- upper :: String -> State Context ()
- lower :: String -> State Context ()
- xoff :: Int -> State Context ()
- yoff :: Int -> State Context ()
- ceil :: String -> State Context ()
- floorflat :: String -> State Context ()
- linetype :: Int -> Int -> State Context ()
- sectortype :: Int -> Int -> State Context ()
- setthing :: Int -> State Context ()
- mapname :: String -> State Context ()
- withXoff :: Int -> State Context () -> State Context ()
- runWadL :: State Context a -> Context
- htf_Liquorice_Monad_thisModulesTests :: TestSuite
Documentation
twice :: StateT Context Identity a -> StateT Context Identity () Source #
Perform the supplied action twice.
triple :: Applicative m => m a -> m () Source #
Perform the supplied action three times.
quad :: Applicative m => m a -> m () Source #
Perform the supplied action four times.
box :: Int -> Int -> Int -> Int -> Int -> StateT Context Identity () Source #
Draw a primitive rectangular box, X and Y in size, and give the resulting
sector's properties as f
floor height, c
ceiling height and l
light
level.
ibox :: Int -> Int -> Int -> Int -> Int -> State Context () Source #
Draw a primitive rectangular box, similar to box
, but as an inner sector
parented by the last-drawn Sector.
pushpop :: State Context () -> State Context () Source #
Perform the actions x
and then return the pen location
to the value
it had prior to x
.
place :: Int -> Int -> StateT Context Identity b -> StateT Context Identity b Source #
Perform the action `stuff at an offset of (x
,y
) from the current
location
move the pen back that relative amount afterwards.
turnaround :: State Context () Source #
withXoff :: Int -> State Context () -> State Context () Source #
Perform the supplied actions with paletteXoff
set to the supplied value,
then reset paletteXoff
.