From a9ac64d3b972306982b27c81632182864022f939 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 11 Dec 2008 11:12:18 +0000 Subject: Generalize swapping two pieces of terrain in function swap_terrain(). Encapsulate filling out a corpse object for a particular monster in fill_out_corpse(). Started work on "swap chaos weapon with weapon of victim" chaos effect, but am putting that off until there's some actor class virtual methods for changing inventory and equipment. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7807 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/terrain.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/terrain.h') diff --git a/crawl-ref/source/terrain.h b/crawl-ref/source/terrain.h index 4e3df832c8..c3f855a346 100644 --- a/crawl-ref/source/terrain.h +++ b/crawl-ref/source/terrain.h @@ -61,6 +61,9 @@ void dungeon_terrain_changed(const coord_def &pos, bool preserve_features = false, bool preserve_items = false); +bool swap_features(const coord_def &pos1, const coord_def &pos2, + bool swap_everything = false); + bool is_critical_feature(dungeon_feature_type feat); void init_feat_desc_cache(); -- cgit v1.2.3-54-g00ecf