Make struct sacrifice_def private, avoid copying.
[crawl.git] / crawl-ref / source / godabil.h
1 /**
2  * @file
3  * @brief God-granted abilities.
4 **/
5
6 #ifndef GODABIL_H
7 #define GODABIL_H
8
9 #include "enum.h"
10 #include "externs.h"
11 #include "spl-cast.h"
12
13 #define BEOGH_WPN_GIFT_KEY "given beogh weapon"
14 #define BEOGH_ARM_GIFT_KEY "given beogh armour"
15 #define BEOGH_SH_GIFT_KEY "given beogh shield"
16
17 struct bolt;
18 class stack_iterator;
19
20 string zin_recite_text(const int seed, const int prayertype, int step);
21 bool zin_check_able_to_recite(bool quiet = false);
22 int zin_check_recite_to_monsters(bool quiet = false);
23 bool zin_recite_to_single_monster(const coord_def& where);
24 void zin_recite_interrupt();
25 bool zin_vitalisation();
26 void zin_remove_divine_stamina();
27 bool zin_remove_all_mutations();
28 bool zin_sanctuary();
29
30 void tso_divine_shield();
31 void tso_remove_divine_shield();
32
33 void elyvilon_purification();
34 bool elyvilon_divine_vigour();
35 void elyvilon_remove_divine_vigour();
36
37 bool vehumet_supports_spell(spell_type spell);
38
39 bool trog_burn_spellbooks();
40 void trog_do_trogs_hand(int power);
41 void trog_remove_trogs_hand();
42
43 void jiyva_paralyse_jellies();
44 bool jiyva_remove_bad_mutation();
45
46 bool beogh_water_walk();
47 bool beogh_can_gift_items_to(const monster* mons, bool quiet = true);
48 bool beogh_gift_item();
49
50 bool yred_injury_mirror();
51 bool yred_can_animate_dead();
52 bool yred_animate_remains_or_dead();
53 void yred_make_enslaved_soul(monster* mon, bool force_hostile = false);
54
55 bool kiku_receive_corpses(int pow);
56 bool kiku_take_corpse();
57
58 bool fedhas_passthrough_class(const monster_type mc);
59 bool fedhas_passthrough(const monster* target);
60 bool fedhas_passthrough(const monster_info* target);
61 bool fedhas_shoot_through(const bolt& beam, const monster* victim);
62 int fedhas_fungal_bloom();
63 spret_type fedhas_sunlight(bool fail = false);
64 void process_sunlights(bool future = false);
65 bool prioritise_adjacent(const coord_def& target, vector<coord_def>& candidates);
66 bool fedhas_plant_ring_from_fruit();
67 int fedhas_rain(const coord_def &target);
68 int count_corpses_in_los(vector<stack_iterator> *positions);
69 int fedhas_check_corpse_spores(bool quiet = false);
70 int fedhas_corpse_spores(beh_type attitude = BEH_FRIENDLY);
71 bool mons_is_evolvable(const monster* mon);
72 bool fedhas_check_evolve_flora(bool quiet = false);
73 void fedhas_evolve_flora();
74
75 void lugonu_bend_space();
76
77 void cheibriados_time_bend(int pow);
78 void cheibriados_temporal_distortion();
79 bool cheibriados_slouch(int pow);
80 void cheibriados_time_step(int pow);
81 bool ashenzari_transfer_knowledge();
82 bool ashenzari_end_transfer(bool finished = false, bool force = false);
83
84 bool can_convert_to_beogh();
85 void spare_beogh_convert();
86
87 bool dithmenos_shadow_step();
88 monster* shadow_monster(bool equip = true);
89 void shadow_monster_reset(monster *mon);
90 void dithmenos_shadow_melee(actor* target);
91 void dithmenos_shadow_throw(coord_def target, const item_def &item);
92 void dithmenos_shadow_spell(bolt* orig_beam, spell_type spell);
93
94 int gozag_porridge_price();
95 bool gozag_setup_potion_petition(bool quiet = false);
96 bool gozag_potion_petition();
97 int gozag_price_for_shop(bool max = false);
98 bool gozag_setup_call_merchant(bool quiet = false);
99 bool gozag_call_merchant();
100 int gozag_type_bribable(monster_type type, bool force = false);
101 branch_type gozag_bribable_branch(monster_type type);
102 bool gozag_branch_bribable(branch_type branch);
103 int gozag_branch_bribe_susceptibility(branch_type branch);
104 void gozag_deduct_bribe(branch_type br, int amount);
105 bool gozag_check_bribe_branch(bool quiet = false);
106 bool gozag_bribe_branch();
107
108 spret_type qazlal_upheaval(coord_def target, bool quiet = false,
109                            bool fail = false);
110 void qazlal_elemental_force();
111 bool qazlal_disaster_area();
112
113 void init_sac_index();
114 const skill_type arcane_mutation_to_skill(mutation_type mutation);
115 const char* arcane_mutation_to_school_name(mutation_type mutation);
116 vector<ability_type> get_possible_sacrifices();
117 void ru_offer_new_sacrifices();
118 bool ru_do_sacrifice(ability_type sac);
119 bool ru_reject_sacrifices();
120 void ru_reset_sacrifice_timer(bool clear_timer = false);
121 void ru_expire_sacrifices();
122 bool will_ru_retaliate();
123 void ru_do_retribution(monster* mons, int damage);
124 void ru_draw_out_power();
125 bool ru_power_leap();
126 bool ru_apocalypse();
127 #endif