diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-03-22 09:32:10 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-03-22 18:49:32 +0100 |
commit | 0d95dc671575c8b38eb1d18f20fa9537f9c38d5e (patch) | |
tree | 3f6088119ab9614f51bdaf68a02152f560f465bf /crawl-ref/source/losglobal.h | |
parent | 8cc49931c17750ea03154485fde5143f1a9ce46f (diff) | |
download | crawl-ref-0d95dc671575c8b38eb1d18f20fa9537f9c38d5e.tar.gz crawl-ref-0d95dc671575c8b38eb1d18f20fa9537f9c38d5e.zip |
losglobal.cc: A start at tracking LOS globally.
Diffstat (limited to 'crawl-ref/source/losglobal.h')
-rw-r--r-- | crawl-ref/source/losglobal.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/losglobal.h b/crawl-ref/source/losglobal.h new file mode 100644 index 0000000000..b8a406247c --- /dev/null +++ b/crawl-ref/source/losglobal.h @@ -0,0 +1,17 @@ +#ifndef LOSGLOBAL_H +#define LOSGLOBAL_H + +enum los_type +{ + LOS_DEFAULT = (1 << 0), + LOS_NO_TRANS = (1 << 1), + LOS_FLAG_INVALID = (1 << 7) // internal use +}; + +void invalidate_los_around(const coord_def& p); +void invalidate_los(); + +bool cell_see_cell(const coord_def& p, const coord_def& q, los_type l); + +#endif + |