summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.h')
-rw-r--r--crawl-ref/source/fight.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.h b/crawl-ref/source/fight.h
index 48eb893dc1..f10d5391d6 100644
--- a/crawl-ref/source/fight.h
+++ b/crawl-ref/source/fight.h
@@ -124,6 +124,13 @@ public:
int calc_to_hit(bool random = true);
+ static std::string anon_name(description_level_type desc);
+ static std::string actor_name(const actor *a, description_level_type desc,
+ bool actor_visible);
+ static std::string pronoun(const actor *a, pronoun_type ptyp,
+ bool actor_visible);
+ static std::string anon_pronoun(pronoun_type ptyp);
+
private:
void init_attack();
bool is_water_attack(const actor *, const actor *) const;
@@ -137,6 +144,9 @@ private:
std::string special_attack_punctuation();
std::string attack_strength_punctuation();
+ std::string atk_name(description_level_type desc) const;
+ std::string def_name(description_level_type desc) const;
+
bool attack_shield_blocked(bool verbose);
bool apply_damage_brand();
void calc_elemental_brand_damage(int res, const char *verb);
@@ -149,6 +159,10 @@ private:
void check_defender_train_dodging();
void splash_defender_with_acid(int strength);
void splash_monster_with_acid(int strength);
+ bool decapitate_hydra(int damage_done, int damage_type = -1);
+ bool chop_hydra_head( int damage_done,
+ int dam_type,
+ int wpn_brand );
// Returns true if the defender is banished.
bool distortion_affects_defender();