summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.h
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-02-11 19:35:09 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-02-11 19:36:36 +1000
commit5985eb775389c695ec803d677335d7457ddc26d0 (patch)
tree8f8552eb17bacef9bdb8b4f794b336101f7f6bcc /crawl-ref/source/itemname.h
parent5f7004a89b00fa9970a79ce13b60e1043412fd9b (diff)
downloadcrawl-ref-5985eb775389c695ec803d677335d7457ddc26d0.tar.gz
crawl-ref-5985eb775389c695ec803d677335d7457ddc26d0.zip
Base type, sub type and ego wrappers for dLua items.
Missile egos currently duplicate code; this is bad, but I don't really feel like rewriting how the missile ego naming is handled (which isn't paricularly well, at the minute).
Diffstat (limited to 'crawl-ref/source/itemname.h')
-rw-r--r--crawl-ref/source/itemname.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h
index bd49966118..90e1fdaf02 100644
--- a/crawl-ref/source/itemname.h
+++ b/crawl-ref/source/itemname.h
@@ -98,6 +98,7 @@ std::string make_name(unsigned long seed, bool all_caps, int maxlen = -1,
const char* weapon_brand_name(const item_def& item, bool terse);
const char* armour_ego_name(const item_def& item, bool terse);
+const char* missile_brand_name (const item_def& item);
void init_properties();
@@ -130,5 +131,11 @@ const char* wand_type_name(int wandtype);
bool is_named_corpse(const item_def &corpse);
std::string get_corpse_name(const item_def &corpse,
unsigned long *name_type = NULL);
+std::string base_type_string (object_class_type type, bool known = true);
+std::string base_type_string (const item_def &item, bool known = true);
+std::string sub_type_string (object_class_type type, int sub_type, bool known = true);
+std::string sub_type_string (const item_def &item, bool known = true);
+
+std::string ego_type_string (const item_def &item);
#endif