summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-04 11:32:42 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-04 11:32:42 +0000
commitebe3faa645862641354b8bddf6c52dccc108a16c (patch)
tree5a349309cbde8c3803b8ca83b5833e63392e7c42 /crawl-ref/source/mon-util.h
parent746b402561b6b27625c5c1ac33028da9aa846b18 (diff)
downloadcrawl-ref-ebe3faa645862641354b8bddf6c52dccc108a16c.tar.gz
crawl-ref-ebe3faa645862641354b8bddf6c52dccc108a16c.zip
Implementing patch 1775415 (outsourcing monster speech) by
zelgadis. Currently, shout.txt and speak.txt share in with the .des files in /dat. That should be changed, but I've no idea how to do this. Also implementing a bug fix by ennewalker (1787428). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2052 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r--crawl-ref/source/mon-util.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h
index 1461c5bd88..61e9d9099b 100644
--- a/crawl-ref/source/mon-util.h
+++ b/crawl-ref/source/mon-util.h
@@ -371,4 +371,39 @@ monster_type random_monster_at_grid(int grid);
monster_type get_monster_by_name(std::string name, bool exact = false);
+std::string do_mon_str_replacements(const std::string msg,
+ const monsters* monster);
+
+enum mon_body_shape {
+ MON_SHAPE_HUMANOID,
+ MON_SHAPE_HUMANOID_WINGED,
+ MON_SHAPE_HUMANOID_TAILED,
+ MON_SHAPE_HUMANOID_WINGED_TAILED,
+ MON_SHAPE_CENTAUR,
+ MON_SHAPE_NAGA,
+ MON_SHAPE_QUADRUPED,
+ MON_SHAPE_QUADRUPED_TAILLESS,
+ MON_SHAPE_QUADRUPED_WINGED,
+ MON_SHAPE_BAT,
+ MON_SHAPE_SNAKE, // Including eels and worms
+ MON_SHAPE_FISH,
+ MON_SHAPE_INSECT,
+ MON_SHAPE_INSECT_WINGED,
+ MON_SHAPE_ARACHNID,
+ MON_SHAPE_CENTIPEDE,
+ MON_SHAPE_SNAIL,
+ MON_SHAPE_PLANT,
+ MON_SHAPE_FUNGUS,
+ MON_SHAPE_ORB,
+ MON_SHAPE_BLOB,
+ MON_SHAPE_MISC
+};
+
+mon_body_shape get_mon_shape(const monsters *mon);
+mon_body_shape get_mon_shape(const int type);
+
+std::string get_mon_shape_str(const monsters *mon);
+std::string get_mon_shape_str(const int type);
+std::string get_mon_shape_str(const mon_body_shape shape);
+
#endif