Debian Codegraph @

src/borg/borg6.h

raw symbols SCIP
1 /* File: borg6.h */
2
3 /* Purpose: Header file for "borg6.c" -BEN- */
4
5 #ifndef INCLUDED_BORG6_H
6 #define INCLUDED_BORG6_H
7
8 #include "angband.h"
9 #include "obj-tval.h"
10 #include "cave.h"
11
12 #ifdef ALLOW_BORG
13
14 /*
15 * This file provides support for "borg6.c".
16 */
17
18 #include "borg1.h"
19 #include "borg2.h"
20 #include "borg3.h"
21
22 /*
23 * Possible values of "goal"
24 */
25 #define GOAL_KILL 1 /* Monsters */
26 #define GOAL_TAKE 2 /* Objects */
27 #define GOAL_MISC 3 /* Stores */
28 #define GOAL_DARK 4 /* Exploring */
29 #define GOAL_XTRA 5 /* Searching */
30 #define GOAL_BORE 6 /* Leaving */
31 #define GOAL_FLEE 7 /* Fleeing */
32 #define GOAL_VAULT 8 /* Vaults */
33 #define GOAL_RECOVER 9 /* Resting safely */
34 #define GOAL_DIGGING 10 /* Anti-summon Corridor */
35
36
37
38 /*
39 * Minimum "harmless" food
40 */
41
42 #define SV_FOOD_MIN_OKAY SV_FOOD_CURE_POISON
43
44
45
46 /*
47 * Attempt to induce WORD_OF_RECALL
48 */
49 extern bool borg_recall(void);
50
51 /*
52 * special teleports
53 */
54 extern bool borg_shadow_shift(int allow_fail);
55 extern bool borg_dimension_door(int allow_fail);
56 extern bool borg_allow_teleport(void);
57
58
59 /*
60 * Low level goals
61 */
62 extern bool borg_caution(void);
63 extern bool borg_attack(bool boosted_bravery);
64 extern bool borg_munchkin_mage(void);
65 extern bool borg_munchkin_melee(void);
66 extern bool borg_recover(void);
67
68 extern bool borg_offset_ball(void);
69 extern bool borg_defend(int p);
70 extern bool borg_perma_spell(void);
71
72 extern bool borg_check_rest(int y, int x);
73 extern void borg_near_monster_type(int dist);
74
75 /*
76 * Twitchy goals
77 */
78 extern bool borg_charge_kill(void);
79 extern bool borg_charge_take(void);
80 extern bool borg_twitchy(void);
81
82
83
84 /*
85 * Continue a high level goal
86 */
87 extern bool borg_flow_old(int why);
88
89 /*
90 * Flow to stairs
91 */
92 extern bool borg_flow_stair_both(int why, bool sneak);
93 extern bool borg_flow_stair_less(int why, bool sneak);
94 extern bool borg_flow_stair_more(int why, bool sneak, bool brave);
95
96
97 extern bool borg_flow_glyph(int why);
98 extern bool borg_flow_light(int why);
99 extern bool borg_check_LIGHT_only(void);
100 extern bool borg_backup_swap(int p);
101 extern bool borg_flow_recover(bool viewable, int dist);
102
103 /*
104 * Flow to shops
105 */
106 extern bool borg_flow_shop_visit(void);
107 extern bool borg_flow_shop_entry(int n);
108
109 /*
110 * Flow towards monsters/objects
111 */
112 extern bool borg_flow_kill(bool viewable, int nearness);
113 extern bool borg_flow_kill_aim(bool viewable);
114 extern bool borg_flow_kill_corridor_1(bool viewable);
115 extern bool borg_flow_kill_corridor_2(bool viewable);
116 extern bool borg_flow_kill_direct(bool viewable, bool twitchy);
117 extern bool borg_flow_take(bool viewable, int nearness);
118 extern bool borg_flow_vein(bool viewable, int nearness);
119 extern bool borg_flow_take_lunal(bool viewable, int nearness);
120 extern bool borg_flow_take_scum(bool viewable, int nearness);
121 extern void borg_flow_direct_dig(int m_y, int m_x);
122 extern bool borg_flow_vault(int nearness);
123 extern bool borg_excavate_vault(int nearness);
124 extern bool borg_LIGHT_beam(bool simulation);
125 /*
126 * Flow towards "interesting" grids
127 */
128 extern bool borg_flow_dark(bool neer);
129
130 /*
131 * Search for secret doors
132 */
133 extern bool borg_flow_spastic(bool bored);
134
135 extern bool borg_target(int y, int x);
136 extern int borg_launch_damage_one(int i, int dam, int typ, int ammo_location);
137 extern int borg_attack_aux_thrust(void);
138
139
140 extern void borg_log_battle(bool);
141 extern void borg_log_event(char* event);
142
143 /*
144 * Initialize this file
145 */
146 extern void borg_init_6(void);
147
148 extern bool borg_caution_phase(int emergency, int turns);
149
150 #endif
151
152 #endif
153