summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/bloodspatter.h
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-01 23:20:50 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-01 23:24:51 -0700
commitc22efd9fab02d2b1b0ad6a00a8bfc45475efc360 (patch)
tree512d9f5b84e188039de0d689e93f7ecee430b245 /crawl-ref/source/bloodspatter.h
parent22f25ab0e848bb3f03d7bd4c0331fda178b879c3 (diff)
downloadcrawl-ref-c22efd9fab02d2b1b0ad6a00a8bfc45475efc360.tar.gz
crawl-ref-c22efd9fab02d2b1b0ad6a00a8bfc45475efc360.zip
Let BLOOD finally have its place in the sun
...by moving bloodspatter functions into their own file. Death to misc.cc! Long live the new file hierarchy!
Diffstat (limited to 'crawl-ref/source/bloodspatter.h')
-rw-r--r--crawl-ref/source/bloodspatter.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/crawl-ref/source/bloodspatter.h b/crawl-ref/source/bloodspatter.h
new file mode 100644
index 0000000000..1e82fa06de
--- /dev/null
+++ b/crawl-ref/source/bloodspatter.h
@@ -0,0 +1,20 @@
+/**
+ * @file
+ * @brief Functions for spattering blood all over the place.
+ **/
+
+#ifndef BLOODSPATTER_H
+#define BLOODSPATTER_H
+
+void bleed_onto_floor(const coord_def& where, monster_type mon, int damage,
+ bool spatter = false, bool smell_alert = true,
+ const coord_def& from = INVALID_COORD,
+ const bool old_blood = false);
+void blood_spray(const coord_def& where, monster_type mon, int level);
+void generate_random_blood_spatter_on_level(
+ const map_bitmask *susceptible_area = NULL);
+
+// Set FPROP_BLOODY after checking bleedability.
+bool maybe_bloodify_square(const coord_def& where);
+
+#endif