forked from crawl/crawl
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathareas.h
56 lines (42 loc) · 1.18 KB
/
areas.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef AREAS_H
#define AREAS_H
enum area_centre_type
{
AREA_NONE,
AREA_SANCTUARY,
AREA_SILENCE,
AREA_HALO,
AREA_LIQUID,
AREA_ORB,
AREA_UMBRA,
AREA_QUAD,
AREA_DISJUNCTION,
#if TAG_MAJOR_VERSION == 34
AREA_HOT,
#endif
};
void invalidate_agrid(bool recheck_new = false);
class actor;
void areas_actor_moved(const actor* act, const coord_def& oldpos);
void create_sanctuary(const coord_def& center, int time);
bool remove_sanctuary(bool did_attack = false);
void decrease_sanctuary_radius();
coord_def find_centre_for (const coord_def& f, area_centre_type at = AREA_NONE);
bool silenced(const coord_def& p);
// Does the given point lie within a halo?
bool haloed(const coord_def& p);
// or is the ground there liquefied?
bool liquefied(const coord_def& p, bool check_actual = true);
// Is it enlightened by the orb?
bool orb_haloed(const coord_def& p);
// ...or by a quad damage?
bool quad_haloed(const coord_def& p);
// ...or by disjunction?
bool disjunction_haloed(const coord_def& p);
// ...or endarkened by an umbra?
bool umbraed(const coord_def& p);
#if TAG_MAJOR_VERSION == 34
// ...or is the area hot?
bool heated(const coord_def& p);
#endif
#endif