summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-06-19 16:11:44 -0400
committerNeil Moore <neil@s-z.org>2013-06-19 16:41:17 -0400
commit2c01c8d8359cf0953e57bfdde2c0fe9d57d35d34 (patch)
tree1c63a10a18d7ec9f703bddf3d620e834da355d79 /crawl-ref/source/itemprop.h
parent51996ca5c75be2e509ed5a0bc5af261fabf25153 (diff)
downloadcrawl-ref-2c01c8d8359cf0953e57bfdde2c0fe9d57d35d34.tar.gz
crawl-ref-2c01c8d8359cf0953e57bfdde2c0fe9d57d35d34.zip
Simplify is_melee_weapon and move it out of fight.cc
Also, make it take a reference rather than a pointer (like is_{,ranged_}weapon) and use it in the berserk check.
Diffstat (limited to 'crawl-ref/source/itemprop.h')
-rw-r--r--crawl-ref/source/itemprop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h
index d4cbe67020..30d5c3e2b9 100644
--- a/crawl-ref/source/itemprop.h
+++ b/crawl-ref/source/itemprop.h
@@ -126,6 +126,7 @@ bool is_throwable(const actor *actor, const item_def &wpn,
bool force = false) PURE;
launch_retval is_launched(const actor *actor, const item_def *launcher,
const item_def &missile) PURE;
+bool is_melee_weapon(const item_def &weapon) PURE;
reach_type weapon_reach(const item_def &item) PURE;