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/fprop.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/fprop.h')
-rw-r--r-- | crawl-ref/source/fprop.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/crawl-ref/source/fprop.h b/crawl-ref/source/fprop.h new file mode 100644 index 0000000000..cd8abcf51e --- /dev/null +++ b/crawl-ref/source/fprop.h @@ -0,0 +1,23 @@ +#ifndef FPROP_H +#define FPROP_H + +struct coord_def; + +bool is_sanctuary( const coord_def& p ); +bool is_bloodcovered( const coord_def& p ); + +enum feature_property_type +{ + FPROP_NONE = 0, + FPROP_SANCTUARY_1 = (1 << 0), + FPROP_SANCTUARY_2 = (1 << 2), + FPROP_BLOODY = (1 << 3), + FPROP_VAULT = (1 << 4), + FPROP_HIGHLIGHT = (1 << 5), // Highlight grids on the X map for debugging. + // NOTE: Bloody floor and sanctuary are exclusive. + FPROP_FORCE_EXCLUDE = (1 << 6), + FPROP_NO_CLOUD_GEN = (1 << 7), + FPROP_NO_RTELE_INTO = (1 << 8) +}; + +#endif |