summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-11 18:27:30 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-11 18:27:30 +0000
commit0e5f00f8997011546d2010e975bcce3ccd78be91 (patch)
tree53bddd7a96a7756ad751dfd29bf2f7d4cd115514 /crawl-ref/source/fight.h
parent38ee7a2c66d01a47b69b17e78a477b2f2832b388 (diff)
downloadcrawl-ref-0e5f00f8997011546d2010e975bcce3ccd78be91.tar.gz
crawl-ref-0e5f00f8997011546d2010e975bcce3ccd78be91.zip
Fixed monsters that are not in sight being identified by name if they're
attacking a monster that is in sight. Implemented AF_MUTATE for pulsating lumps. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1288 c06c8d41-db1a-0410-9941-cceddc491573
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();