diff options
Diffstat (limited to 'crawl-ref/source/fprop.cc')
-rw-r--r-- | crawl-ref/source/fprop.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/crawl-ref/source/fprop.cc b/crawl-ref/source/fprop.cc new file mode 100644 index 0000000000..50023409d0 --- /dev/null +++ b/crawl-ref/source/fprop.cc @@ -0,0 +1,25 @@ +/* + * File: envmap.cc + * Summary: Functions dealing with env.map_knowledge. + */ + +#include "AppHdr.h" + +#include "fprop.h" + +#include "coord.h" +#include "env.h" +#include "stuff.h" + +bool is_sanctuary(const coord_def& p) +{ + if (!map_bounds(p)) + return (false); + return (testbits(env.pgrid(p), FPROP_SANCTUARY_1) + || testbits(env.pgrid(p), FPROP_SANCTUARY_2)); +} + +bool is_bloodcovered(const coord_def& p) +{ + return (testbits(env.pgrid(p), FPROP_BLOODY)); +} |