summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-death.h
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-04-08 20:43:00 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-04-12 20:51:15 -0400
commit766729b656dec57abae4f0d41367a2f00e5b4ec4 (patch)
tree65c5f86f3a245549667627e151e81195cd43dcdb /crawl-ref/source/mon-death.h
parent53eb3cf6e3870b5bbce99d3221f34cd08e16d034 (diff)
downloadcrawl-ref-766729b656dec57abae4f0d41367a2f00e5b4ec4.tar.gz
crawl-ref-766729b656dec57abae4f0d41367a2f00e5b4ec4.zip
Move mon death stuff from mon-stuff.cc to mon-death.cc.
Touches a lot of files since their #includes have to be edited. (Pushing now since it shouldn't break anything and keeping it updated is nasty.)
Diffstat (limited to 'crawl-ref/source/mon-death.h')
-rw-r--r--crawl-ref/source/mon-death.h42
1 files changed, 41 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-death.h b/crawl-ref/source/mon-death.h
index c7439eca4d..20761ce5f2 100644
--- a/crawl-ref/source/mon-death.h
+++ b/crawl-ref/source/mon-death.h
@@ -1,11 +1,51 @@
/**
* @file
- * @brief Monster death functionality (kraken, uniques, and so-on).
+ * @brief Monster death functionality.
**/
#ifndef MONDEATH_H
#define MONDEATH_H
+#define FRESHEST_CORPSE 210
+#define ROTTING_CORPSE 99
+
+struct bolt;
+
+int monster_die(monster* mons, const actor *killer, bool silent = false,
+ bool wizard = false, bool fake = false);
+
+int monster_die(monster* mons, killer_type killer,
+ int killer_index, bool silent = false, bool wizard = false,
+ bool fake = false);
+
+int mounted_kill(monster* daddy, monster_type mc, killer_type killer,
+ int killer_index);
+
+monster_type fill_out_corpse(const monster* mons,
+ monster_type mtype,
+ item_def& corpse,
+ bool force_corpse = false);
+
+bool explode_corpse(item_def& corpse, const coord_def& where);
+
+int place_monster_corpse(const monster* mons, bool silent,
+ bool force = false);
+void monster_cleanup(monster* mons);
+void setup_spore_explosion(bolt & beam, const monster& origin);
+void record_monster_defeat(monster* mons, killer_type killer);
+int destroy_tentacles(monster* head);
+void unawaken_vines(const monster* mons, bool quiet);
+void fire_monster_death_event(monster* mons, killer_type killer, int i, bool polymorph);
+
+int exp_rate(int killer);
+
+void mons_check_pool(monster* mons, const coord_def &oldpos,
+ killer_type killer = KILL_NONE, int killnum = -1);
+
+string summoned_poof_msg(const monster* mons, bool plural = false);
+string summoned_poof_msg(const int midx, const item_def &item);
+string summoned_poof_msg(const monster* mons, const item_def &item);
+
bool mons_is_pikel(monster* mons);
void pikel_band_neutralise();