diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 19:25:37 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 19:26:33 +0100 |
commit | 8786fef5e47392ca5c3daa8e932c10e7c1ef9715 (patch) | |
tree | 88a59a682b4a82ce44b0c1f3b9a3a59ecee624a5 /crawl-ref/source/monster.cc | |
parent | f626e442c7a77191a145825507610d3b1ef40ab3 (diff) | |
download | crawl-ref-8786fef5e47392ca5c3daa8e932c10e7c1ef9715.tar.gz crawl-ref-8786fef5e47392ca5c3daa8e932c10e7c1ef9715.zip |
Implement actor::can_see.
This just relies on actor::visible_to and actor::see_cell. An arena
special case was removed.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 28f44c2c7b..affe0e3836 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -5159,11 +5159,6 @@ bool monsters::see_cell(const coord_def &c) const return (mon_see_cell(c)); } -bool monsters::can_see(const actor *targ) const -{ - return (targ->visible_to(this) && see_cell(targ->pos())); -} - bool monsters::near_foe() const { const actor *afoe = get_foe(); |