summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ranged_attack.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-15 22:04:40 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-04-27 17:02:32 -0600
commitdc91ade0243adba03fa5160dc3f0fb8aac84200c (patch)
treefe962420245e89f3da8942d4e6b7058f811e9086 /crawl-ref/source/ranged_attack.cc
parent3d16f3b060f7ce54bd74de9037d882316715458f (diff)
downloadcrawl-ref-dc91ade0243adba03fa5160dc3f0fb8aac84200c.tar.gz
crawl-ref-dc91ade0243adba03fa5160dc3f0fb8aac84200c.zip
A skeleton ranged_attack class, derived from attack.
TODO: tie this up to the beam code; move shared code between melee and ranged to plain attack; write ranged-specific code.
Diffstat (limited to 'crawl-ref/source/ranged_attack.cc')
-rw-r--r--crawl-ref/source/ranged_attack.cc68
1 files changed, 68 insertions, 0 deletions
diff --git a/crawl-ref/source/ranged_attack.cc b/crawl-ref/source/ranged_attack.cc
new file mode 100644
index 0000000000..5b23d27421
--- /dev/null
+++ b/crawl-ref/source/ranged_attack.cc
@@ -0,0 +1,68 @@
+/**
+ * @file
+ * @brief ranged_attack class and associated ranged_attack methods
+ */
+
+#include "AppHdr.h"
+
+#include "ranged_attack.h"
+
+ranged_attack::ranged_attack(actor *attk, actor *defn, item_def *proj) :
+ attack(attk, defn), projectile(proj)
+{
+}
+
+int ranged_attack::calc_to_hit(bool)
+{
+ return 0;
+}
+
+bool ranged_attack::handle_phase_attempted()
+{
+ return false;
+}
+
+bool ranged_attack::handle_phase_dodged()
+{
+ return false;
+}
+
+bool ranged_attack::handle_phase_blocked()
+{
+ return false;
+}
+
+bool ranged_attack::handle_phase_hit()
+{
+ return false;
+}
+
+bool ranged_attack::handle_phase_damaged()
+{
+ return false;
+}
+
+bool ranged_attack::handle_phase_killed()
+{
+ return false;
+}
+
+bool ranged_attack::handle_phase_end()
+{
+ return false;
+}
+
+bool ranged_attack::attack_shield_blocked(bool verbose)
+{
+ return false;
+}
+
+bool ranged_attack::apply_damage_brand()
+{
+ return false;
+}
+
+bool ranged_attack::check_unrand_effects()
+{
+ return false;
+}