blob: 50023409d0352d194386f10df7f8413d2af503dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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));
}
|