diff options
author | Robert Burnham <burnhamrobertp@gmail.com> | 2011-03-21 16:11:18 -0500 |
---|---|---|
committer | Robert Burnham <burnhamrobertp@gmail.com> | 2011-03-21 16:11:18 -0500 |
commit | 36dc4a416cb00f552d30a4ecbb42308731ba3230 (patch) | |
tree | 961eeaeeac1050a72907b07ab307a4bbfecd5dbc /crawl-ref/source/attack.h | |
parent | 20107310e512a677d81588acd9a7315ca4c9b93d (diff) | |
download | crawl-ref-36dc4a416cb00f552d30a4ecbb42308731ba3230.tar.gz crawl-ref-36dc4a416cb00f552d30a4ecbb42308731ba3230.zip |
Additional development of attack.cc, reording of class functions in attack.h
Implements more of non-overloaded class functions of attack.cc and sets up
attack::init_attack to do basic initialization before the derived class calls
its init_attack.
Diffstat (limited to 'crawl-ref/source/attack.h')
-rw-r--r-- | crawl-ref/source/attack.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/attack.h b/crawl-ref/source/attack.h index 50186d7013..9f335509ed 100644 --- a/crawl-ref/source/attack.h +++ b/crawl-ref/source/attack.h @@ -19,6 +19,7 @@ public: int to_hit; int damage_done; + int special_damage; // We'll see if we can remove this int aux_damage; bool stab_attempt; @@ -69,12 +70,12 @@ public: virtual int adjust_to_hit(bool random = true); // Exact copies of their melee_attack predecessors + std::string actor_name(const actor *a, description_level_type desc, + bool actor_visible, bool actor_invisible); + std::string actor_pronoun(const actor *a, pronoun_type ptyp, + bool actor_visible); std::string anon_name(description_level_type desc, bool actor_invisible); - std::string attacker_name(const actor *a, description_level_type desc, - bool actor_visible, bool actor_invisible); - std::string attacker_pronoun(const actor *a, pronoun_type ptyp, - bool actor_visible); std::string anon_pronoun(pronoun_type ptyp); // Private Methods @@ -91,9 +92,6 @@ private: // Determine if we're blocking (partially or entirely) virtual bool attack_shield_blocked(bool verbose); virtual bool apply_damage_brand(); - void calc_elemental_brand_damage(beam_type flavour, - int res, - const char *verb); // Ouput methods std::string atk_name(description_level_type desc) const; @@ -101,7 +99,9 @@ private: std::string wep_name(description_level_type desc = DESC_NOCAP_YOUR, iflags_t ignore_flags = ISFLAG_KNOW_CURSE | ISFLAG_KNOW_PLUSES) const; - + void calc_elemental_brand_damage(beam_type flavour, + int res, + const char *verb); } #endif
\ No newline at end of file |