From ebe3faa645862641354b8bddf6c52dccc108a16c Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 4 Sep 2007 11:32:42 +0000 Subject: 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 --- crawl-ref/source/mon-util.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'crawl-ref/source/mon-util.h') 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 -- cgit v1.2.3-54-g00ecf