summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-22 08:41:20 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-22 08:41:20 +0000
commit1d0f57cbceb778139ca215cc4fcfd1584951f6dd (patch)
treecafd60c944c51fcce778aa5d6912bc548c518339 /crawl-ref/source/itemname.h
parent6f5e187a9e5cd348296dba2fd89d2e206e775a01 (diff)
downloadcrawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.tar.gz
crawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.zip
Merged stone_soup r15:451 into trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.h')
-rw-r--r--crawl-ref/source/itemname.h62
1 files changed, 11 insertions, 51 deletions
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h
index 0d1ccc79a2..9bdc87360e 100644
--- a/crawl-ref/source/itemname.h
+++ b/crawl-ref/source/itemname.h
@@ -3,6 +3,8 @@
* Summary: Misc functions.
* Written by: Linley Henzell
*
+ * Modified for Crawl Reference by $Author$ on $Date$
+ *
* Change History (most recent first):
*
* <1> -/--/-- LRH Created
@@ -27,18 +29,12 @@ char get_ident_type(char cla, int ty);
* it_use2 - item_use - items - monstuff - mstuff2 - ouch -
* shopping - spells1 - spells2 - spells3
* *********************************************************************** */
-char item_name( const item_def &item, char descrip, char buff[ITEMNAME_SIZE],
+const char *item_name( const item_def &item, char descrip,
+ char *buff = NULL,
bool terse = false );
/* ***********************************************************************
- * called from: beam - describe - fight - item_use - items - monstuff -
- * player
- * *********************************************************************** */
-int mass_item( const item_def &item );
-
-
-/* ***********************************************************************
* called from: debug - describe - dungeon - fight - files - item_use -
* monstuff - mstuff2 - players - spells0
* *********************************************************************** */
@@ -48,7 +44,7 @@ int property( const item_def &item, int prop_type );
/* ***********************************************************************
* called from: acr
* *********************************************************************** */
-unsigned char check_item_knowledge(void);
+void check_item_knowledge(void);
/* ***********************************************************************
@@ -61,59 +57,30 @@ void clear_ids(void);
* called from: direct - fight - food - items - monstuff - religion -
* shopping
* *********************************************************************** */
-void it_name(int itn, char des, char buff[ITEMNAME_SIZE], bool terse = false);
+const char *it_name(int itn, char des, char *buff = NULL, bool terse = false);
/* ***********************************************************************
* called from: acr - chardump - command - effects - fight - invent -
* it_use2 - it_use3 - item_use - items - ouch - output -
* spell - spells1 - spells2 - spells3 - spells4 - transfor
* *********************************************************************** */
-void in_name(int inn, char des, char buff[ITEMNAME_SIZE], bool terse = false);
+const char *in_name(int inn, char des, char *buff = NULL, bool terse = false);
/* ***********************************************************************
* called from: itemname.cc items.cc item_use.cc mstuff2.cc
* *********************************************************************** */
-void quant_name( const item_def &item, int quant, char des,
+const char *quant_name( const item_def &item, int quant, char des,
char buff[ITEMNAME_SIZE], bool terse = false );
/* ***********************************************************************
* bit operations called from a large number of files
* *********************************************************************** */
bool item_cursed( const item_def &item );
-bool item_uncursed( const item_def &item );
-
bool item_known_cursed( const item_def &item );
bool item_known_uncursed( const item_def &item );
-// bool fully_indentified( const item_def &item );
+bool fully_identified( const item_def &item );
-bool item_ident( const item_def &item, unsigned long flags );
bool item_type_known( const item_def &item );
-bool item_not_ident( const item_def &item, unsigned long flags );
-
-void do_curse_item( item_def &item );
-void do_uncurse_item( item_def &item );
-
-void set_ident_flags( item_def &item, unsigned long flags );
-void unset_ident_flags( item_def &item, unsigned long flags );
-
-void set_equip_race( item_def &item, unsigned long flags );
-void set_equip_desc( item_def &item, unsigned long flags );
-
-unsigned long get_equip_race( const item_def &item );
-unsigned long get_equip_desc( const item_def &item );
-
-bool cmp_equip_race( const item_def &item, unsigned long val );
-bool cmp_equip_desc( const item_def &item, unsigned long val );
-
-void set_helmet_type( item_def &item, short flags );
-void set_helmet_desc( item_def &item, short flags );
-void set_helmet_random_desc( item_def &item );
-
-short get_helmet_type( const item_def &item );
-short get_helmet_desc( const item_def &item );
-
-bool cmp_helmet_type( const item_def &item, short val );
-bool cmp_helmet_desc( const item_def &item, short val );
bool set_item_ego_type( item_def &item, int item_type, int ego_type );
@@ -121,20 +88,12 @@ int get_weapon_brand( const item_def &item );
int get_ammo_brand( const item_def &item );
int get_armour_ego_type( const item_def &item );
-bool item_is_rod( const item_def &item );
-bool item_is_staff( const item_def &item );
-
/* ***********************************************************************
* called from: acr
* *********************************************************************** */
void init_properties(void);
-/* ***********************************************************************
- * called from: files - randart - shopping
- * *********************************************************************** */
-void make_name( unsigned char var1, unsigned char var2, unsigned char var3,
- char ncase, char buff[ITEMNAME_SIZE] );
-
+int make_name( unsigned long seed, bool all_caps, char buff[ ITEMNAME_SIZE ] );
/* ***********************************************************************
* called from: files - shopping
@@ -153,5 +112,6 @@ void set_ident_type( char cla, int ty, char setting, bool force = false );
* *********************************************************************** */
bool hide2armour( unsigned char *which_subtype );
+bool is_interesting_item( const item_def& item );
#endif