diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-06-03 13:19:41 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-06-03 13:29:04 +0200 |
commit | 3045b999025412edb402c5c4ba646bf258cfcb22 (patch) | |
tree | 827af6d0845c306ed221f91c683723eea981972c /crawl-ref/source/mapmark.h | |
parent | 1d7a418b9ab26edf89328fb3f1aa7030e7d6e4c4 (diff) | |
download | crawl-ref-3045b999025412edb402c5c4ba646bf258cfcb22.tar.gz crawl-ref-3045b999025412edb402c5c4ba646bf258cfcb22.zip |
Tomb using map markers.
Tie the tomb not to a monster, but to a place.
This is not a complete implementation.
Currently missing:
* energy loss or recite effect after dropping tomb;
perhaps the marker should get another field that stores the source
of the tomb (i.e., player or monster).
* _timeout_tomb might also need to be called from update_level?
* ENCH_ENTOMBED has to be removed
* only applied to the spell, not to the Zin ability
Diffstat (limited to 'crawl-ref/source/mapmark.h')
-rw-r--r-- | crawl-ref/source/mapmark.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/mapmark.h b/crawl-ref/source/mapmark.h index 62cd8fe722..a13c5f01f8 100644 --- a/crawl-ref/source/mapmark.h +++ b/crawl-ref/source/mapmark.h @@ -102,6 +102,23 @@ public: int duration, radius; }; +class map_tomb_marker : public map_marker +{ +public: + map_tomb_marker(const coord_def& pos = coord_def(0, 0), + int dur = 0); + + void write(writer &) const; + void read(reader &); + map_marker *clone() const; + std::string debug_describe() const; + + static map_marker *read(reader &, map_marker_type); + +public: + int duration; +}; + // A marker powered by Lua. class map_lua_marker : public map_marker, public dgn_event_listener { |