forked from dungeons-of-moria/icmoria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dungeon.h
63 lines (55 loc) · 2.47 KB
/
dungeon.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
57
58
59
60
61
62
63
/* dungeon.h */
/* there were not enough globals in variables.h */
#define DRAW_BOLT_DELAY 50
#define DRAW_BALL_DELAY 30
typedef integer mm_type[6]; //array [1..5] of integer;
extern integer dir_val; // { For movement }
//extern integer y,x,moves; // { For movement }
//extern integer i1,i2,tmp1; // { Temporaries }
extern integer old_chp,old_cmana; // { Detect change }
extern real regen_amount; // { Regenerate hp and mana}
extern char command; // { Last command }
//extern vtype out_val,out2; // { For messages }
//extern vtype tmp_str; // { Temporary }
extern boolean moria_flag; // { Next level when true }
extern boolean reset_flag; // { Do not move creatures }
extern boolean search_flag; // { Player is searching }
extern boolean teleport_flag; // { Handle telport traps }
extern boolean player_light; // { Player carrying light }
extern boolean save_msg_flag; // { Msg flag after INKEY }
extern ttype s1,s2,s3,s4; // { Summon item strings }
extern integer i_summ_count; // { Summon item count }
//extern char trash_char;
//extern FILE * f1;
//extern stat_set tstat;
//extern treas_ptr trash_ptr;
#define DISPLAY_SIZE 20
#define MOO_DISPLAY_SIZE 18
/* index stuff for door_list */
#define DL_OPEN 0
#define DL_CLOSED 1
#define DL_SECRET 2
#define ML(mmm) (m_list[(mmm)])
#define MY(mmm) (m_list[(mmm)].fy)
#define MX(mmm) (m_list[(mmm)].fx)
extern boolean do_stun(byteint a_cptr, integer save_bonus, integer time);
extern void desc_remain(treas_ptr item_ptr);
extern void add_food(integer num);
extern void desc_charges(treas_ptr item_ptr);
extern boolean move_to_creature(integer dir, integer *y, integer *x);
extern boolean bolt_to_creature(integer dir, integer *y, integer *x,
integer *dist, integer max_dist,
boolean visable);
extern boolean cast_spell(vtype prompt, treas_ptr item_ptr, integer *sn,
integer *sc, boolean *redraw);
extern boolean d__get_dir(vtype prompt, integer *dir, integer *com_val,
integer *y, integer *x);
extern boolean explode(integer typ,integer y,integer x,
integer dam_hp,ctype descrip);
extern void teleport(integer dis);
extern boolean create_water(integer y, integer x);
extern boolean destroy_water(integer y, integer x);
extern boolean item_petrify();
extern boolean xor(integer thing1, integer thing2);
extern void blow();
/* END FILE dungeon.h */