summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-message.h
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-06-19 16:05:04 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-06-22 10:03:45 -0400
commit465957cba490a2a9d5444a64523572a90cfb837f (patch)
tree536c94ce0702e60217120aa2bb27325aff1b8f2d /crawl-ref/source/mon-message.h
parent393eda0d444702a7eda580e6c363bbdcaba8d54e (diff)
downloadcrawl-ref-465957cba490a2a9d5444a64523572a90cfb837f.tar.gz
crawl-ref-465957cba490a2a9d5444a64523572a90cfb837f.zip
The great mon-stuff migration.
A good deal of functions move to the two new files, mon-poly and mon-message. Of the others, some go to where they are used, some to mon-util, and a few are made member methods of monster. This probably breaks Xcode compilation, and I'm not able to test the changes I made to MSVC that will (hopefully) keep it working.
Diffstat (limited to 'crawl-ref/source/mon-message.h')
-rw-r--r--crawl-ref/source/mon-message.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-message.h b/crawl-ref/source/mon-message.h
new file mode 100644
index 0000000000..0f912db181
--- /dev/null
+++ b/crawl-ref/source/mon-message.h
@@ -0,0 +1,33 @@
+/**
+ * @file
+ * @brief Monster message-connected functions.
+**/
+
+#ifndef MONMESSAGE_H
+#define MONMESSAGE_H
+
+enum mon_dam_level_type
+{
+ MDAM_OKAY,
+ MDAM_LIGHTLY_DAMAGED,
+ MDAM_MODERATELY_DAMAGED,
+ MDAM_HEAVILY_DAMAGED,
+ MDAM_SEVERELY_DAMAGED,
+ MDAM_ALMOST_DEAD,
+ MDAM_DEAD,
+};
+
+bool simple_monster_message(const monster* mons, const char *event,
+ msg_channel_type channel = MSGCH_PLAIN,
+ int param = 0,
+ description_level_type descrip = DESC_THE);
+
+void print_wounds(const monster* mons);
+bool wounded_damaged(mon_holy_type holi);
+
+mon_dam_level_type mons_get_damage_level(const monster* mons);
+
+string get_damage_level_string(mon_holy_type holi, mon_dam_level_type mdam);
+bool mons_class_can_display_wounds(monster_type mc);
+bool mons_can_display_wounds(const monster* mon);
+#endif