1 void set_terrain_blocked();
2 short ex_sqrt(short val
);
3 short dist(location p1
,location p2
);
4 short vdist(location p1
,location p2
) ;
5 Boolean
adjacent(location p1
,location p2
);
6 Boolean
point_onscreen(location center
,location check
);
7 short set_direction (location old_pt
, location new_pt
);
8 location
global_to_local(location global
);
9 location
local_to_global(location local
);
10 Boolean
loc_off_world(location p1
);
11 Boolean
loc_off_act_area(location p1
);
12 location
get_cur_loc();
13 short short_can_see(shortloc p1
,shortloc p2
);
14 Boolean
is_lava(short x
,short y
);
15 short can_see(location p1
,location p2
,short mode
);
16 short get_obscurity(short x
,short y
);
17 unsigned char coord_to_ter(short x
,short y
);
18 Boolean
is_container(location loc
);
19 void update_explored(location dest
);
20 Boolean
is_blocked(location to_check
);
21 Boolean
monst_on_space(location loc
,short m_num
);
22 short monst_there(location where
) ;
23 Boolean
monst_can_be_there(location loc
,short m_num
);
24 Boolean
monst_adjacent(location loc
,short m_num
);
25 Boolean
monst_can_see(short m_num
,location l
);
26 Boolean
party_can_see_monst(short m_num
);
27 Boolean
can_see_monst(location l
,short m_num
);
28 Boolean
outd_is_blocked(location to_check
);
29 Boolean
special_which_blocks_monst(location to_check
);
30 Boolean
is_special(location to_check
);
31 Boolean
outd_is_special(location to_check
);
32 Boolean
impassable(unsigned char terrain_to_check
);
33 short get_blockage(unsigned char terrain_type
);
35 Boolean
pt_in_light(location from_where
,location to_where
) ;// Assumes, of course, in town or combat
36 Boolean
combat_pt_in_light(location to_where
);
37 Boolean
party_sees_a_monst(); // Returns true is a hostile monster is in sight.
38 short party_can_see(location where
);
39 location
push_loc(location from_where
,location to_where
);
40 Boolean
spot_impassable(short i
,short j
);
41 void swap_ter(short i
,short j
,unsigned char ter1
,unsigned char ter2
);
42 void alter_space(short i
,short j
,unsigned char ter
);