blob: 6cc279ecd9e7b91b16d6b9da77055187fcb55289 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/*
* File: itemname.cc
* Summary: Misc functions.
* Written by: Linley Henzell
*
* Modified for Crawl Reference by $Author$ on $Date$
*
* Change History (most recent first):
*
* <1> -/--/-- LRH Created
*/
#ifndef ITEMNAME_H
#define ITEMNAME_H
#include "externs.h"
bool is_vowel( const char chr );
/* ***********************************************************************
* called from: debug - describe - dungeon - fight - files - item_use -
* monstuff - mstuff2 - players - spells0
* *********************************************************************** */
int property( const item_def &item, int prop_type );
/* ***********************************************************************
* called from: acr
* *********************************************************************** */
void check_item_knowledge(void);
std::string quant_name( const item_def &item, int quant,
description_level_type des, bool terse = false );
/* ***********************************************************************
* bit operations called from a large number of files
* *********************************************************************** */
bool item_cursed( const item_def &item );
bool item_known_cursed( const item_def &item );
bool item_known_uncursed( const item_def &item );
bool fully_identified( const item_def &item );
unsigned long full_ident_mask( const item_def& item );
bool item_type_known( const item_def &item );
bool set_item_ego_type( item_def &item, int item_type, int ego_type );
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 is_interesting_item( const item_def& item );
int make_name( unsigned long seed, bool all_caps, char buff[ ITEMNAME_SIZE ] );
/* ***********************************************************************
* called from: acr
* *********************************************************************** */
void init_properties();
id_arr& get_typeid_array();
item_type_id_state_type get_ident_type(object_class_type basetype,
int subtype);
void set_ident_type( object_class_type basetype, int subtype,
item_type_id_state_type setting, bool force = false);
#endif
|