diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 14:23:03 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 14:46:22 +0100 |
commit | 28f6c800df6bc63658b9c79e803bf81ac282aa1d (patch) | |
tree | df593b87768f0324939f89ed6f4d7aea8c950de4 /crawl-ref/source/env.h | |
parent | a4eda3c37bb9ec6d9b847e827390a66062229b99 (diff) | |
download | crawl-ref-28f6c800df6bc63658b9c79e803bf81ac282aa1d.tar.gz crawl-ref-28f6c800df6bc63658b9c79e803bf81ac282aa1d.zip |
Split map knowledge and FPROPs.
map_cell no longer has the field "properties", which has been
replaced by the unsigned long array env.pgrid.
env.map has been renamed to env.map_knowledge. It should really
be moved into player.
Diffstat (limited to 'crawl-ref/source/env.h')
-rw-r--r-- | crawl-ref/source/env.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/env.h b/crawl-ref/source/env.h index ff51dbe2cb..85bb53ad6b 100644 --- a/crawl-ref/source/env.h +++ b/crawl-ref/source/env.h @@ -1,7 +1,7 @@ #ifndef ENV_H #define ENV_H -#include "mapcell.h" +#include "map_knowledge.h" #include "monster.h" #include "show.h" @@ -17,12 +17,14 @@ public: FixedVector< monsters, MAX_MONSTERS > mons; // monster list feature_grid grid; // terrain grid + FixedArray< unsigned long, GXM, GYM > pgrid; // terrain properties FixedArray< unsigned short, GXM, GYM > mgrid; // monster grid FixedArray< int, GXM, GYM > igrid; // item grid FixedArray< unsigned short, GXM, GYM > cgrid; // cloud grid FixedArray< unsigned short, GXM, GYM > grid_colours; // colour overrides - FixedArray< map_cell, GXM, GYM > map; // discovered terrain + // Player-remembered terrain. TODO: move to class player. + FixedArray< map_cell, GXM, GYM > map_knowledge; // Objects that are in LOS, used for drawing. show_def show; |