diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-12-02 02:36:58 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-12-02 02:36:58 +0100 |
commit | 6e0cc204e1c939bfbe669b110f757e00f9b42a98 (patch) | |
tree | a73faa3769112610dea5a5632ff29de957ce2c5e /crawl-ref/source/los_def.h | |
parent | 8cdf2433051a953950824266ec20c5d91811d610 (diff) | |
download | crawl-ref-6e0cc204e1c939bfbe669b110f757e00f9b42a98.tar.gz crawl-ref-6e0cc204e1c939bfbe669b110f757e00f9b42a98.zip |
Make los_def not use virtual methods.
They don't belong in performance sensitive code... and the only other class
derived from los_base just became 404-compliant.
Diffstat (limited to 'crawl-ref/source/los_def.h')
-rw-r--r-- | crawl-ref/source/los_def.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/crawl-ref/source/los_def.h b/crawl-ref/source/los_def.h index 015587a2ac..61cb3cab70 100644 --- a/crawl-ref/source/los_def.h +++ b/crawl-ref/source/los_def.h @@ -3,19 +3,7 @@ #include "los.h" -class los_base -{ -public: - virtual ~los_base() {} - - virtual coord_def get_center() const = 0; - virtual circle_def get_bounds() const = 0; - - virtual bool in_bounds(const coord_def& p) const = 0; - virtual bool see_cell(const coord_def& p) const = 0; -}; - -class los_def : public los_base +class los_def { los_grid show; coord_def center; |