diff options
author | Enne Walker <ennewalker@users.sourceforge.net> | 2009-10-18 16:32:37 -0400 |
---|---|---|
committer | Enne Walker <ennewalker@users.sourceforge.net> | 2009-10-18 16:52:02 -0400 |
commit | df0b2a5165b84d52d9c43d76d14adea095b671c8 (patch) | |
tree | 6e1587fae77a2c020b8c7e5498e5eb8caab88cdf /crawl-ref/source/clua.h | |
parent | 52fce0a7785eccba94e59c7ec8375019780eddcc (diff) | |
download | crawl-ref-df0b2a5165b84d52d9c43d76d14adea095b671c8.tar.gz crawl-ref-df0b2a5165b84d52d9c43d76d14adea095b671c8.zip |
Lua map improvements.
The previous dungeon layout.des functions all apply directly to the grid
and so are unsuitable for use in vaults. This aims to correct that by
providing lua functions that can manipulate maps (of glyphs).
grd[x][y] in a .des file can now be used to get and set glyphs in the
current map. This should allow for less cumbersome map variations
than what you can do with just SUBST and SHUFFLE.
To support that, map_def no longer batches up transforms--it applies
them all immediately. This resulted in a good bit of refactoring.
FTILE/RTILE map commands now support setting the tile for multiple
features at once.
There are also a small number of new lua functions that apply to maps
(map_octa_room, map_smear, and map_extend). Ideally, these will
eventually replace the existing builder funcs that work on grd.
Diffstat (limited to 'crawl-ref/source/clua.h')
-rw-r--r-- | crawl-ref/source/clua.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.h b/crawl-ref/source/clua.h index a6ed4ac413..f98e80076f 100644 --- a/crawl-ref/source/clua.h +++ b/crawl-ref/source/clua.h @@ -320,5 +320,7 @@ void print_clua_stack(); #define MAP_METATABLE "dgn.mtmap" #define DEVENT_METATABLE "dgn.devent" #define MAPMARK_METATABLE "dgn.mapmark" +#define GRD_METATABLE "dgn.grd" +#define GRD_COL_METATABLE "dgn.grdcol" #endif |