mw-engine.display

Simple functions to allow a world to be visualised.

*image-base*

dynamic

Base url (i.e., url of directory) from which to load tile images.

format-css-class

(format-css-class state)

Format this state, assumed to be a keyword indicating a state in the world, into a CSS class

format-image-path

(format-image-path state)

Render this state, assumed to be a keyword indicating a state in the world, into a path which should recover the corresponding image file.

format-mouseover

(format-mouseover cell)

TODO: write docs

render-cell

(render-cell cell)

Render this world cell as a Hiccup table cell.

render-world-row

(render-world-row row)

Render this world row as a Hiccup table row.

render-world-table

(render-world-table world)

Render this world as a Hiccup table.